Bug 23929 - The folder Skrivbord is named Desktop in $HOME with a Swedish locale system setting
Summary: The folder Skrivbord is named Desktop in $HOME with a Swedish locale system s...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2018-12-02 01:34 CET by Kristoffer Grundström
Modified: 2019-06-21 09:44 CEST (History)
7 users (show)

See Also:
Source RPM: xdg-user-dirs
CVE:
Status comment:


Attachments
Wrong name (61.32 KB, image/png)
2018-12-02 01:41 CET, Kristoffer Grundström
Details
Wrong naming with the side panel showing (85.16 KB, image/png)
2018-12-02 01:44 CET, Kristoffer Grundström
Details
Result of the urpmq --not-available command (1.02 KB, text/plain)
2018-12-04 00:41 CET, Kristoffer Grundström
Details

Description Kristoffer Grundström 2018-12-02 01:34:44 CET
Description of problem: This is just a minor irritating issue, but when I install Cauldron and log into the Desktop Environment called MATE I get the Desktop folder in $HOME called Desktop when it should be named Skrivbord as I use Swedish as a system language. If I create a new user account and login to GNOME the folder is called Skrivbord as it's supposed to.

Version-Release number of selected component (if applicable): 2.18

How reproducible: All the time.

Steps to Reproduce:
1. Download, burn and install Cauldron using the net installation iso.
2. Choose Swedish as language in the installer.
3. Install MATE, GNOME and Cinnamon as Desktop Environments.
4. In the installation summary step double check that the keyboard settings are set to Swedish as well.
5. Login to the MATE desktop.
6. Open the Home folder on the desktop.
7. Notice how the Desktop folder with Swedish locale settings is called Desktop instead of Skrivbord as it's supposed to be named.
Comment 1 Kristoffer Grundström 2018-12-02 01:41:24 CET
Created attachment 10521 [details]
Wrong name

CC: (none) => hamnisdude

Comment 2 Kristoffer Grundström 2018-12-02 01:42:23 CET
The weird thing is that when I open the Files manager and look at the side panel it says Skrivbord correctly.
Comment 3 Kristoffer Grundström 2018-12-02 01:44:28 CET
Created attachment 10522 [details]
Wrong naming with the side panel showing
Comment 4 Marja Van Waes 2018-12-03 15:44:21 CET
Assigning to all packagers collectively, because there is currently no registered maintainer for Mate.

CC'ing Stig and André. 

@ Umeaboy

We've had mixed versions of Mate in Cauldron. That was reverted, but if you did already install some Mate 1.21.x packages, then you'll need to downgrade those to version 1.20.x

You can check with 

  urpmq --not-available | grep mate

whether you have Mate 1.21.x packages that need to be downgraded.

Do you indeed have such 1.21.x packages and does downgrading them solve this bug?

CC: (none) => andre999mga, marja11, smelror
Assignee: bugsquad => pkg-bugs
Keywords: (none) => NEEDINFO

Comment 5 Kristoffer Grundström 2018-12-04 00:41:45 CET
Created attachment 10528 [details]
Result of the urpmq --not-available command
Comment 6 Kristoffer Grundström 2018-12-04 00:43:00 CET
(In reply to Marja Van Waes from comment #4)

> Do you indeed have such 1.21.x packages and does downgrading them solve this
> bug?

Is there an easy way to collectively downgrade them all at once without breaking the system or is it safe to downgrade them one by one?
Comment 7 andré blais 2018-12-04 01:19:21 CET
(In reply to Kristoffer Grundström from comment #6)
> (In reply to Marja Van Waes from comment #4)
> 
> > Do you indeed have such 1.21.x packages and does downgrading them solve this
> > bug?
> 
> Is there an easy way to collectively downgrade them all at once without
> breaking the system or is it safe to downgrade them one by one?

using

urpmi --downgrade {list of packages to downgrade}

should work.
You might/probably have to log out/log in after for everything to work ok after.

Sorry, my comment without checking probably contributed to the problem.
Comment 8 Stig-Ørjan Smelror 2018-12-04 23:46:14 CET
Hi.

I see the same in a fresh install of Mate in a VM. My guess is that there may be a bug somewhere else and has nothing to do with Mate.

Also tried with LxQT and it's the same there.

It _may_ be related to bug 22889. Can't be sure, tho.

Cheers,
Stig

Hardware: x86_64 => All
Source RPM: (none) => xdg-user-dirs

Comment 9 Stig-Ørjan Smelror 2018-12-04 23:48:34 CET
Forgot to mention that I'm using Norwegian (nb_NO.UTF-8).
Comment 10 Stig-Ørjan Smelror 2018-12-06 23:22:02 CET
Even when using English as the main language and then after first boot, change to Norwegian, the folder "Desktop" is still there.

I got a popup window asking me if I wanted to rename them and I agreed to that.

There is a folder named "Skrivebord" now as well as the mentioned "Desktop" in my home directory.

Don't know which one is in use.

Cheers,
Stig
Comment 11 Stig-Ørjan Smelror 2018-12-07 00:07:54 CET
It's actually present in MGA6 as well.

Running in VMware 15.

Looks like it may be a long-standing issue.

Can somebody else please confirm?

Cheers,
Stig
Stig-Ørjan Smelror 2018-12-13 21:11:36 CET

Priority: Normal => release_blocker

Comment 12 Kristoffer Grundström 2018-12-26 14:44:30 CET
The issue is back when I create an even newer account, but this time the path is called Desktop and not the icon on the actual desktop in MATE.
Comment 13 Martin Whitaker 2019-05-19 10:39:47 CEST
(In reply to Stig-Ørjan Smelror from comment #10)
> Even when using English as the main language and then after first boot,
> change to Norwegian, the folder "Desktop" is still there.
> 
> I got a popup window asking me if I wanted to rename them and I agreed to
> that.
> 
> There is a folder named "Skrivebord" now as well as the mentioned "Desktop"
> in my home directory.
> 
> Don't know which one is in use.

See bug 14358 comment 22 for an explanation of this part.

CC: (none) => mageia

Comment 14 Martin Whitaker 2019-05-19 13:45:30 CEST
The cause of the original bug is that the program that creates the user directories, xdg-user-dirs-update, is called when the DE processes the .desktop files in /etc/xdg/autostart. If xdg-user-dirs-update finds an existing directory named Desktop, it will use that in preference to a translated name. It seems MATE creates a Desktop directory before it processes the autostart files.

You can fix this up by editing $HOME/.config/user-dirs.dirs and changing the XDG_DESKTOP_DIR setting, renaming the Desktop folder, and logging out and back in again.
Comment 15 Kristoffer Grundström 2019-05-20 08:54:53 CEST
(In reply to Martin Whitaker from comment #14)
> The cause of the original bug is that the program that creates the user
> directories, xdg-user-dirs-update, is called when the DE processes the
> .desktop files in /etc/xdg/autostart. If xdg-user-dirs-update finds an
> existing directory named Desktop, it will use that in preference to a
> translated name. It seems MATE creates a Desktop directory before it
> processes the autostart files.
> 
> You can fix this up by editing $HOME/.config/user-dirs.dirs and changing the
> XDG_DESKTOP_DIR setting, renaming the Desktop folder, and logging out and
> back in again.

I did just that and then I got 2 folders where the first one says Skrivbord and the other is called Desktop, but the folder called Skrivbord is empty when Desktop is not.

Any way to correct this?
Comment 16 Martin Whitaker 2019-05-20 09:46:58 CEST
That didn't happen when I tested it...you are using MATE, and not some other DE?

The items in Desktop shouldn't currently be showing on the desktop - if not, recheck the XDG_DESKTOP_DIR setting. If so, just move them from Desktop to Skrivbord, and they should appear. You should then be able to delete the Desktop folder.
Comment 17 andré blais 2019-05-21 00:32:02 CEST
I had a similar problem, i.e. a "desktop" folder instead on one in my language.
(I also use mate.)
The simple fix is go to properties on the folder, and select "desktop" in the emblem tab.
I don't remember if I had to log out to reset the name, but it worked nicely.

You want to have a desktop folder, but displayed with the name translated into your language.
(If you display the folder in the console, it will show as "desktop", but will show translated when using caja, the graphic file manager for mate).

Since you now have a folder actually named with the translation of "desktop" into your language, you should rename it to something else or the procedure above might not work.
Comment 18 Castro B 2019-06-19 11:30:57 CEST
I had a similar problem looks like it may be a long-standing issue

Castro B,
https://tab.do/zh-tw/

CC: (none) => castro8583bennett

Comment 19 Daniel Tartavel 2019-06-20 14:40:16 CEST
Hi,

Same thing under plasma 5 in Mageia 6 and cauldron fresh install.
Comment 20 Daniel Tartavel 2019-06-20 14:40:16 CEST
Hi,

Same thing under plasma 5 in Mageia 6 and cauldron fresh install.

CC: (none) => contact

Comment 21 Martin Whitaker 2019-06-21 09:44:06 CEST
Please read comment 14. xdg-user-dirs-update is working as it is designed to. If you want different behaviour, you could try opening an upstream bug report, but there's probably a reason why it works that way.

Note You need to log in before you can comment on or make changes to this bug.