Skip to content

The desktop_menu_install function should filter the system's desktop files instead of folders #212

@q962

Description

@q962

# Do not install to system paths.
for path in GLib.get_system_config_dirs():
for filename in directory_files:
if filename.startswith(path):
return True

This function will determine the location of the folder to which the current desktop file belongs.

My desktop file is installed in the user directory, but it can belong to a folder created by the system

So this function will cause the installation to fail.

Although the default storage path of the desktop file is ~/.local/share/applications.

But it will not call the xdg-desktop-menu install command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions