Bug 106449

Summary: resolving symlinks in binary_to_desktop_file can cause issues.
Product: Portland Reporter: Simon Lees (SUSE) <sflees>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: 1.1.0   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Simon Lees (SUSE) 2018-05-09 06:51:25 UTC
this is a tough one as it maybe broken either way, but binary_to_desktop_file currently follows symlinks of the binary file passed in, which in the case of firefox on openSUSE ends up pointing to /usr/lib64/firefox.sh, which in turn leads to it searching for "firefox.sh" in the desktop files which is not found. 

The line in question is 
binary="`readlink -f "$binary"`"

maybe this is a bug in firefox's desktop file (exec'ing a symlink rather then the binary) but either way I thought i'd look for a second opinion on which is more right.
Comment 1 GitLab Migration User 2019-02-16 13:39:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/xdg-utils/issues/125.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.