! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Filenames of desktop configuration files (.desktop) not accessible, lead to c...
Status:
RESOLVED: MOVED

Comments

Description Yarny 2013-07-30 23:39:11 CEST
If Thunar recognizes a file as desktop configuration file, it shows it's "Name" (given by its content) instead of its real file name.  This can lead to lots of confusion and unexpected behaviour.

This is best illustrated by an example.  The commands
 $ mkdir ~/a ~/b
 $ echo -e '[Desktop Entry]\nName=bug' > ~/a/0.desktop
 $ touch ~/b/0.desktop
 $ chmod a+x ~/a/0.desktop
create a file ~/a/0.desktop with valid content and an empty file ~/b/0.desktop.
Thunar will show the files ~/a/bug and ~/b/0.desktop.  The user cannot realize that "bug" is in reality "0.desktop" as even the properties dialog claims the filename is "bug".  Renaming the "bug" file makes Thunar not change the filename, but the content of the file.  If the user attempts to copy 0.desktop from ~/b to ~/a, Thunar claims 'The folder already contains a file "bug"'.

I tested this with Thunar 1.6.1-2.1.1 as it is delivered by openSUSE 12.3.

Showing the content of the "Name" entry is certainly helpful on the desktop, but Thunar should correctly display the filesystem, or at least provide an option to disable special treatment of .desktop files.
Comment 1 haarp 2013-10-21 22:10:44 CEST
Agreed. Don't hide the real name in Thunar, please
Comment 2 Theo Linkspfeifer editbugs 2019-06-13 23:13:47 CEST
*** Bug 15606 has been marked as a duplicate of this bug. ***
Comment 3 alexxcons editbugs 2019-06-13 23:49:43 CEST
Almost a duplicate: Bug #13329  (is about .desktop files with execute permission.)

The patch in https://bugzilla.xfce.org/show_bug.cgi?id=13329#c4 should fix this bug as well.
Comment 4 Git Bot editbugs 2020-05-26 23:14:39 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.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.xfce.org/xfce/thunar/-/issues/56.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #10274

Reported by:
Yarny
Reported on: 2013-07-30
Last modified on: 2020-05-26
Duplicates (1):
  • 15606 Unable to see file name of executeable files (".desktop" is removed)

People

Assignee:
Jannis Pohlmann
CC List:
4 users

Version

Attachments

Additional information