alan2: broken localized user dirs in places.xml

Bug #1444567 reported by Ariszló
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Semplice Linux
New
Undecided
Unassigned

Bug Description

Localized names of xdg-user-dirs are wrongly encoded in ~/.config/vera/alan-menus/places.xml

The xdg-user-dirs package adds Documents, Downloads, Music, Pictures, Public, Templates and Videos subdirectories to users' home directories.

In localized installations, these subdirectories are translated to the selected locale.

The localized directory names are properly displayed in PCManFM but not in places.xml where they are displayed in percent encoding.

This is how the Hungarian translations are rendered in places.xml:

Zen%C3%A9k instead of Zenék (Music)
K%C3%A9pek instead of Képek (Pictures)
Vide%C3%B3k instead of Videók (Videos)
Let%C3%B6lt%C3%A9sek instead of Letöltések (Downloads)

Ariszló (ariszlo)
summary: - broken localized user dir names in places.xdl
+ broken localized user dir names in places.xml
Ariszló (ariszlo)
summary: - broken localized user dir names in places.xml
+ alan2: broken localized user dirs in places.xml
Revision history for this message
Ariszló (ariszlo) wrote :

I have just found in /etc/alan/watchers/places.watcher that the subdirectories are read from ~/.config/gtk-3.0/bookmarks, which uses percent encoding for non-ASCII characters.

alan2 should find a way to decode percent encoding and display the non-ASCII characters properly.

Revision history for this message
Eugenio Paolantonio (g7) wrote :

Hello, thank you for the bug report.

I'll take a look at the issue.

Eugenio

Revision history for this message
Eugenio Paolantonio (g7) wrote :

Hello,

I can't reproduce your issue. Here are the steps I took:

1) Changed locale to Hungarian
2) Installed xdg-user-dirs
3) Once the directories have been created, I added them to the bookmarks via PCManFM

Revision history for this message
Ariszló (ariszlo) wrote :

I have found the culprit. I have also installed the xdg-user-dirs-gtk package, which automatically runs xdg-user-dirs-gtk-update which creates a ~/.config/gtk-3.0/bookmarks file with the following content:

file:///home/ariszlo/Dokumentumok
file:///home/ariszlo/Zen%C3%A9k
file:///home/ariszlo/K%C3%A9pek
file:///home/ariszlo/Vide%C3%B3k
file:///home/ariszlo/Let%C3%B6lt%C3%A9sek

This is how to reproduce the bug:

1) Remove ~/.config/gtk-3.0/bookmarks
2) Install xdg-user-dirs-gtk and then run xdg-user-dirs-gtk-update

But the good news is that adding a directory to the bookmarks with PCManFM fixes the bookmarks file. Add e.g. the "Sablonok" (Templates) directory and all will be fixed. The new content of ~/.config/gtk-3.0/bookmarks will be like this:

file:///home/ariszlo/Dokumentumok Dokumentumok
file:///home/ariszlo/Zen%C3%A9k Zenék
file:///home/ariszlo/K%C3%A9pek Képek
file:///home/ariszlo/Vide%C3%B3k Videók
file:///home/ariszlo/Let%C3%B6lt%C3%A9sek Letöltések
file:///home/ariszlo/Sablonok Sablonok

As you can see, PCManFM adds display labels after the percent encoded directory names.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.