Ubuntu

[gutsy] VERY bad Desktop location inconsistency with xdg-user dirs

Reported by Artem Popov on 2007-10-09
This bug report is a duplicate of:  Bug #122602: Duplicated entries in Places Menu. Edit Remove
2
Affects Status Importance Assigned to Milestone
xdg-user-dirs (Ubuntu)
Undecided
Unassigned

Bug Description

Hello!

I have noticed a terrible inconsistency with the latest xdg-user-dirs package. It seems, that localized Desktop folder is used as a Download folder as well, which makes "Desktop" appear twice in Places menu, the GTK file selector, etc., while there're actually TWO folders in the home directory:

Desktop (unlocalized)
Desktop (localized)

Here's an excerpt from /etc/xdg/user-dirs.defaults:

DESKTOP=Desktop
DOWNLOAD=Desktop

Here's an excerpt from my ~/.config/user-dirs.dirs:

XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Рабочий стол"

Not good, eh? I have tested this misbehaviour with both Russian and French locales, and in both cases the Desktop folder appears twice in all revelant places (like the file selector) - one entry points to "Desktop", and the other points to a localized folder, e.g. "Рабочий стол"

I shall add screenshots for both locales, that can illustrate what I mean (tested with yesterday's daily build).

Artem Popov (artfwo) wrote :
Artem Popov (artfwo) wrote :
Artem Popov (artfwo) wrote :
Artem Popov (artfwo) wrote :
Patrice Vetsel (vetsel-patrice) wrote :

Thank you for your report. I close this bug because it's already reported and fix have been released.

Artem Popov (artfwo) wrote :

Hey, this is not a duplicate, but actually a different bug! And no fix (known to me) has been released for it yet, judging by the changelogs of xdg-user-dirs* packages...

Due to DESKTOP and DOWNLOAD folders being kinda the same location, as specified in /etc/xdg/user-dirs.defaults:

DESKTOP=Desktop
DOWNLOAD=Desktop

...The user-dirs-update program, creates another folder, with a name "Desktop", but the string is localized into user's native language e. g. "Bureau", "Рабочий стол", etc.

And while the actual "Desktop" shortcut does not get bookmarked anymore, the "Download" shortcut is still bookmarked! And not only bookmarked, but an actual physical folder is being created for it. And the folder is named like "Desktop", but translated. See?

While the "special-cased" Desktop folder has an untranslated filename in the home directory, another directory with a translated word "Desktop" is created there to serve the Download-folder purpose.

In Places menu, fileselector, etc. they look the same, because the first "Desktop"-folder is special-cased and localized in the UI, but the second is localized in the filesystem. Take a closer look at the screenshots, you'll see what I mean.

Sebastien Bacher (seb128) wrote :

what version of xdg-user-dirs-gtk do you use? Have you read bug #122602?

Artem Popov (artfwo) wrote :

Of course! I have read the bug #122602? And I use the absolutely latest xdg-user-dirs under daily live builds (as I've said earlier):

xdg-user-dirs-0.9-0ubuntu1
xdg-user-dirs-gtk-0.6-0ubuntu2

But I think the "new bug" has been introduced in xdg-user-dirs-0.8-0ubuntu3:

+ -- Sebastien Bacher <email address hidden> Tue, 02 Oct 2007 18:21:32 +0200
+
+xdg-user-dirs (0.8-0ubuntu3) gutsy; urgency=low
+
+ * debian/patches/10_update_default_list.patch:
+ - use the desktop for download
+

Artem Popov (artfwo) wrote :

Of course! I have read the bug #122602, and I use the absolutely latest xdg-user-dirs under daily live builds (as I've said earlier):

xdg-user-dirs-0.9-0ubuntu1
xdg-user-dirs-gtk-0.6-0ubuntu2

But I think the "new bug" has been introduced in xdg-user-dirs-0.8-0ubuntu3:

+ -- Sebastien Bacher <email address hidden> Tue, 02 Oct 2007 18:21:32 +0200
+
+xdg-user-dirs (0.8-0ubuntu3) gutsy; urgency=low
+
+ * debian/patches/10_update_default_list.patch:
+ - use the desktop for download
+

Artem Popov (artfwo) wrote :

Forgot to mention, that the bug is still reproducable with the latest (for the moment) 20071009.1 daily live ISO. To reproduce, it's enough to:

* Load from a daily liveCD with an international language (like Russian or French)
* On a fully updated gutsy system, create a new user and change the language in GDM before loggin in (this way, folders are created with the right locale).

Sebastien Bacher (seb128) wrote :

did you read the xdg-user-dirs-gtk change about not bookmarking the desktop directory? I'll have a look but your comment are not really constructive, the issue is not the fact that the download directory is the desktop but rather than it gets bookmark where it should not

Artem Popov (artfwo) wrote :

Hi! Of course, I have read all the comments for bug #122602. Sorry, If I am being unclear, but english is not my native language, and my comments may seem ambiguous.

I'll try to be more clear: Despite "Desktop" not being bookmarked in the latest xdg-user-dirs(-gtk) packages, another folder named "Desktop" (translated on disk to "Рабочий стол", "Bureau") is being created, which is very confusing, because:

In all revelant places (Places menu, GTK file choosers, etc.), users have TWO Desktop-shortcuts:

1. One points to the physical "Desktop" folder
2. The other points to the physical "Рабочий стол" folder (Desktop translation)

I beleive this happens due to unification of DESKTOP and DOWNLOAD dirs in 0.8-0ubuntu3. xdg-user-dirs-gtk creates a bookmark for DOWNLOAD, and DOWNLOAD points to DESKTOP in our package. But the folder created has translated name, ignoring the already-present special-cased "Desktop" folder. So, in recent daily livecds I always see 2 folders in my $HOME: "Desktop" and "Рабочий стол"

See?

Please take your time to look at the screenshots attached to this bug. They illustrate this all quite well.

I beleive there're two ways to fix this:

1. Remove translations for "Desktop" and "desktop" from all the .po-files for xdg-user-dirs, so that exactly one special-cased "Desktop" folder will remain.

2. Split DESKTOP and DOWNLOAD in /etc/xdg/user-dirs.defaults again, so the false Desktop folder will not at least be created by default.

I beleive GNOME does not yet respect xdg-user-dirs, and is hardly tied to the special-cased untranslated "Desktop" directory, so it might be useful to remove "desktop" and "Desktop" translation strings from the template until Hardy and GNOME 2.22...

Sebastien Bacher (seb128) wrote :

GNOME 2.20 does use xdg-user-dirs. The issue is not really clear and need extra debugging, the non translated version of Desktop should not be created since Desktop is translated on new installations

Artem Popov (artfwo) wrote :

Hmm, it gets created in new gutsy installs and the live environment, and it seems, that exactly the non-translated Desktop is used everywhere throughout GNOME (only menu/fileselector shortcut is localized, the folder is not), and the translated Desktop is bogus.

I think this is a rather significant bug, which should either be reopened or a new bug must be created for tracking the issue.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers