Skip to content

Symlinks to .desktop files in XDG_DATA_DIRS not trusted

Version information

Thunar 4.20.5 Solus 4.7 Solus 4.8 Preview

Steps to reproduce

  1. Create a symlink to a desktop file
    ln -s /usr/share/applications/thunar.desktop ~/Desktop/test.desktop
  2. Click to open the launcher on the desktop

Current behavior

The popup dialog about the non-trusted application appears.

Expected outcome

No dialog appears, and the application to launch.

Additional information

This follows the prior issue #944 (closed), and the Merge Request !317 (merged). According to the issue and MR, symbolic links pointing to .desktop files in a directory that's a part of XDG_DATA_DIRS (such as /usr/share/applications) should be counted as trusted, and not pop the dialog. Such a link does still show the dialog, however.

In conversation on Matrix, we weren't sure if this should be filed under Thunar, xfdesktop, or libxfce4utils.