Skip to content

AppImages break XDG autostart functionality #247

@crwood

Description

@crwood

When a user enables "autostart" on GNU/Linux via the Preferences pane, Gridsync's creates an XDG-compliant .desktop file with an Exec value that points to the path of the current Gridsync executable. In the case of running the application via an AppImage, however, the "true" path of the Gridsync executable becomes set to the temporary directory that the AppImage bootloader mounts via FUSE -- whose path is partially random and subject to change between launches (and is thus not reliable for the purposes of autostart). This functionality should be fixed/updated so that the created .desktop file points to the location of the AppImage file itself instead of the temporary directory (i.e., by referencing the APPIMAGE environment variable instead of sys.executable/sys.argv[0]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions