Bug 8384 - Some config paths in tl-config can't be tab completed
Summary: Some config paths in tl-config can't be tab completed
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-12 11:18 CEST by Samuel Mannehed
Modified: 2024-09-04 14:29 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Samuel Mannehed cendio 2024-07-12 11:18:35 CEST
When tab completing, only the following top-level folders are suggested:

> $ tl-config /
> /profiles/      /shadowing/     /vsmagent/      /webaccess/     
> /sessionstart/  /vsm/           /vsmserver/     

As seen below, there are some folders missing from our tab completion suggestions:

> $ tl-config --all-entries /
> printing/
> profiles/
> sessionstart/
> shadowing/
> utils/
> vsm/
> vsmagent/
> vsmserver/
> webaccess/

The folders “printing” and “utils” are missing.
Comment 1 Samuel Mannehed cendio 2024-08-23 10:37:29 CEST
When working on bug 8359 I found that the issue comes from incorrect assumptions that file names and hiveconf's folder-names always match. For example, see hivetool:252.

The file which contains the “printing” folder is called “nearest.hconf”. While the “utils” folder is found in three different files.

We should use `hive.get_folders("/")` instead of `hive.sources`.

Note You need to log in before you can comment on or make changes to this bug.