Opened 2 days ago

Last modified 2 days ago

#19336 new bug

Symlink to Desktop shows up with name "home" regardless of name in filesystem

Reported by: jckarter Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

On hrev58486:

  • Open home folder
  • Create a symlink to the Desktop folder.

The symlink shows up with the name "home", even though it refers to the Desktop folder. Trying to change the name of the symlink through Tracker, or from the Terminal, changes the name of the file in the filesystem, but its name still shows up as "home" in Tracker and the Deskbar.

Attachments (1)

wrong-symlink-name.png (107.0 KB ) - added by jckarter 2 days ago.
Screenshot showing that the symlink is named Desktop in the filesystem, as shown in Terminal, but shows as "home" in Tracker and the Deskbar menu

Download all attachments as: .zip

Change History (4)

by jckarter, 2 days ago

Attachment: wrong-symlink-name.png added

Screenshot showing that the symlink is named Desktop in the filesystem, as shown in Terminal, but shows as "home" in Tracker and the Deskbar menu

comment:1 by waddlesplash, 2 days ago

Check the files's attributes, it may have a "SYS_NAME" attribute or something like that which is overriding the file's name.

comment:2 by jckarter, 2 days ago

That was it, thanks waddlesplash! Is it expected that Tracker sets a SYS:NAME on created symlinks? There might also be a bug that it picked up the parent folder's name rather than the target's name when naming the symlink.

comment:3 by waddlesplash, 2 days ago

I think the SYS:NAME on symlinks ought to be copied from the target folder, and if it isn't that's a bug. If the steps you describe cause this problem reliably then it sounds easy enough to investigate.

(The SYS:NAME attribute is how filenames get localized/translated, hence why it overrides the file's name.)

Note: See TracTickets for help on using tickets.