Version number
Keypirinha 2.9.9 for x64
Package
Apps
Issue description
With the default configuration (scan_start_menu and scan_env_path enabled) all file-types located at the Desktop get listed and not only executables (or links to executables).
I think that this behaviour is not consistent with the one for directories listed in PATH or extra_paths.
(Personally, I didn't expect Desktop to get scanned at all ^_^)
Steps for reproducing
- Create a .txt-file at the Desktop
- Use the default-configuration for Apps
- Search directly for the in step 1 created file
Expected behaviour: File should not be listed.
Actual behaviour: File gets listed.
Suggestion for fix/change
I think the inital problem is, that the items located at the start menu are not executable files, but windows-shortcuts. Nevertheless, we know that all these will link to executables so we can ignore scan_env_path in _catalog_startmenu.
But Desktop can contain different file-types. Therefore in this special case we should look for executables and for shortcuts, but only which one are linking to executables!
(Another way could be just not to look inside Desktop)
Version number
Keypirinha 2.9.9 for x64
Package
Apps
Issue description
With the default configuration (
scan_start_menuandscan_env_pathenabled) all file-types located at the Desktop get listed and not only executables (or links to executables).I think that this behaviour is not consistent with the one for directories listed in
PATHorextra_paths.(Personally, I didn't expect Desktop to get scanned at all ^_^)
Steps for reproducing
Expected behaviour: File should not be listed.
Actual behaviour: File gets listed.
Suggestion for fix/change
I think the inital problem is, that the items located at the start menu are not executable files, but windows-shortcuts. Nevertheless, we know that all these will link to executables so we can ignore
scan_env_pathin_catalog_startmenu.But Desktop can contain different file-types. Therefore in this special case we should look for executables and for shortcuts, but only which one are linking to executables!
(Another way could be just not to look inside Desktop)