"Update standard folders" should add language links to folders, not rename them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-user-dirs (Debian) |
Unknown
|
Medium
|
|||
xdg-user-dirs (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: xdg-user-dirs
Update: I made a more concise version of this text upstream at:
https:/
This applies to all Ubuntu (Gnome) versions up to 10.04.
Note: understand "Bureau" below as the name of any "standard" folder in any language. For example, also "Картинки" = Pictures folder name in Russian.
Summary:
This report explain some of the many pitfalls caused by the renaming of Desktop to Bureau.
These pitfalls can cause programs, scripts and the system itself to misbehave.
A drastic solution is to make a Bureau -> Desktop symbolic link instead.
Furthermore, this seems very simple to implement, it almost already works.
When a user changes the language of its profile she/he is asked a "funny" question in Desktop-1.png.
"Update standard folders to new language?"
He/she does not understand and he replies "yes". From then on, obscure magic happens.
Among other folders, ~/Desktop is renamed ~/Bureau, but only if it is empty.
Let's assume it's not. Then a new ~/Bureau is created beside.
If the user drags "New file" (Desktop-2.png) a little bit, it disappears (Desktop-3.png).
It will reappear after the next Login, at which time all the other Desktop objects disappear.
Then she/he makes a screenshot and is told that a file she/he doesn't see does exist (Desktop-3.png).
Nothing is lost, the user has 2 desktops, Desktop and Bureau, only now showing, hard to guess.
The same applies for Documents, Music, etc... total confusion.
If some program unaware of this game looks for Desktop, it won't find it.
Etc... etc... Confusion looks like the comments of (different) Bug #209513.
Every time one refers to ~/Desktop, it's a mistake, and that's not only in programs...
Every time someone writes "cd ~/Desktop" in sample code on the Web, and even worse in a script, they're doing a BIG MISTAKE. They should explain that, if and only if their system implements standard folders renaming, French people must type cd ~/Bureau, Russian ones cd "~/работая стол" etc, even more complicated for the script. HOW SIMPLE !!!
This is obviously not the way it should work.
This is NOT Windows. We can use symbolic links.
Instead of renaming ~/Desktop, let's make a ~/Bureau -> Desktop symbolic link.
EVERYTHING will continue to be able to refer to Desktop unchanged.
And the user interface (Desktop, Nautilus...) will happily refer to ~/Bureau all the same.
It will contain the same data, because the same folder.
The only setting needed is the name to use : Bureau, meaning ~/Bureau, redirected at will.
It's best to create the aliasing without asking the user any question.
There can be a setting for those really wanting to see the folders' names in any language they choose.
If the user changes language again, it's best to leave ~/Bureau intact in case it's referred to somewhere.
The BEST OF ALL is that it already works. Almost...
Before xdg-user-dirs comes into play, make sure Desktop is not empty and create ~/Bureau -> Desktop.
xdg-user-dirs will not change that and the aliasing will work free of all those inconveniences.
User experience.
The above kludge has been used for a 6-language 10-users couple of Ubuntu 8.04 systems.
Beside ~/ being crowded with aliases in 6 languages, the only inconvenience has been Picasa.
They found 6 times the pictures they eagerly looked for.
They will have to learn that scanning a filesystem must not follow aliases.
summary: |
- "Update standard folders" should add language links to folders, not - rename them + XDG_DESKTOP_DIR (ex. ~/Desktop) isn't renamed to the new language if it + isn't empty |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: iso-testing |
description: | updated |
Changed in xdg-user-dirs (Debian): | |
status: | Unknown → Confirmed |
Changed in xdg-user-dirs (Debian): | |
importance: | Unknown → Medium |
Changed in xdg-user-dirs (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | Confirmed → Triaged |
Changed in xdg-user-dirs (Debian): | |
status: | Confirmed → Unknown |
Here are the screenshot attachments.