Skip to content

[Apps] All file-types from Desktop get listed #137

@TheGoblinsBranch

Description

@TheGoblinsBranch

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

  1. Create a .txt-file at the Desktop
  2. Use the default-configuration for Apps
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions