Bug 16132 - gksu-polkit opens apps using wrong (english) locale
Summary: gksu-polkit opens apps using wrong (english) locale
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 14:58 CEST by Herman Viaene
Modified: 2021-05-28 13:44 CEST (History)
4 users (show)

See Also:
Source RPM: gksu-polkit-0.0.3-0.git20131130.15.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Herman Viaene 2015-06-16 14:58:12 CEST
Description of problem: Launching thunar from a crafted desktop entry with gksu displays thunar always in English, despite the fact that the system has been installed in Dutch


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


How reproducible: Always


Steps to Reproduce:
1. A freshly installed Xfce PC with Dutch as language.
2. Make a new starter on the desktop and specify "gksu dolphin" as its command (I give "SuperUser" as its name.
3. Open the normal Thunar on the desktop "Persoonlijke map" (normal user). Thunar opens in Dutch.
4. Start the new desktop "SuperUser", a dialogue opens to fill in the authentication, and then Thunar opens in English.


Reproducible: 

Steps to Reproduce:
Sander Lepik 2015-06-16 15:04:29 CEST

CC: (none) => mageia, tarakbumba

Comment 1 Samuel Verschelde 2015-06-17 12:22:03 CEST
Assigning to XFCE maintainer.

Assignee: bugsquad => jani.valimaa
Whiteboard: (none) => MGA5TOO

Comment 2 Jani Välimaa 2015-06-17 14:45:01 CEST
I'd say this is not a bug in thunar, but a feature when using gksu (as same happens with other apps too).

Thunar supports polkit nowadays [1] so if you want to run thunar as root, you should use 'pkexec thunar' instead.

[1] http://git.xfce.org/xfce/thunar/commit/?id=8eeed6ba6ed0b1efa2b2b05c0b108da816763069
Comment 3 Samuel Verschelde 2015-06-17 14:57:10 CEST
(In reply to Jani Välimaa from comment #2)
> I'd say this is not a bug in thunar, but a feature when using gksu (as same
> happens with other apps too).
> 

Shouldn't gksu use the current user's locale and language?

Assignee: jani.valimaa => bugsquad

Comment 4 Herman Viaene 2015-06-17 15:04:45 CEST
To Comment 2: there must be some more setting involved, as I get at the CLI:
> pkexec thunar
that opens the dialogue for the root password, I put it in, but then:
Thunar : cannot open display
Comment 5 Jani Välimaa 2015-06-18 08:39:26 CEST
Did you try 'pkexec thunar' as root or as a normal user?

CC: (none) => jani.valimaa

Comment 6 Jani Välimaa 2015-06-18 14:43:58 CEST
(In reply to Jani Välimaa from comment #5)
> Did you try 'pkexec thunar' as root or as a normal user?

Nevermind, running pkexec as root doesn't ask for the pwd.
Comment 7 Herman Viaene 2015-06-18 20:04:37 CEST
As a normal user. That's the point of the exercise: creating a launcher so I can launch thunar as root from my normal desktop. Usefull in many cases as I am not such a great fan of the CLI (I know many commands, but a GUI is sooooo much easier).
Jani Välimaa 2015-06-19 07:55:35 CEST

Summary: Xfce-thunar does not always respect installed language => gksu-polkit opens apps using wrong (english) locale

Comment 8 Jani Välimaa 2015-06-19 08:04:01 CEST
If there are still some problems with 'pkexec thunar', please open separate bug report.
Comment 9 Jani Välimaa 2015-06-19 08:04:36 CEST
Could someone try to reproduce the original issue in comment 0 with an another DE than Xfce?
Comment 10 Jani Välimaa 2015-06-19 08:07:34 CEST
(In reply to Jani Välimaa from comment #9)
> Could someone try to reproduce the original issue in comment 0 with an
> another DE than Xfce?

And with some other apps.
Comment 11 Herman Viaene 2015-06-19 09:31:37 CEST
Two tests:
1. Installed gksu on KDE laptop (also running in Dutch), made similar starter with "gksu dolphin", and dolphin opens in English after entering the root password.
I had already a starter with "kdesu dolphin" and tried this again: opens in Dutch.

2. On the laptop where I found the problem reported (Xfce in Dutch), I opened Ark via the menu: opens in Dutch.
Created starter with "gksu ark": opens in English after the root password.
Jani Välimaa 2015-06-19 09:50:55 CEST

Source RPM: (none) => gksu-polkit-0.0.3-0.git20131130.11
CC: jani.valimaa => (none)

Comment 12 Marja Van Waes 2016-10-29 18:29:19 CEST
Assigning to all packagers collectively, since the registered maintainer for this is currently unavailable.

@ Herman

Is this issue still valid, though? 

If so, for which Mageia version(s)?

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

Comment 13 Herman Viaene 2016-10-31 09:34:03 CET
I reported on Mageia5 Xfce, and I get the same on the first Mageia5.1 ISO with MATE using "gksu caja". I don't have an M6 installation anymore to test.
Comment 14 Gerhard Kuehbauer 2017-02-21 17:26:31 CET
The same still happens with Mageia 6 sta1 Xfce incl. all updates and german (de_AT) as system-language. If Thunar or any other programs - for example xed or geany are invoked with gksu-privileges, than they are always using english instead of german. 

Reproducible: Always, just start the application with gksu thunar/geany/whatever

CC: (none) => zorin777a

Comment 15 Marja Van Waes 2021-05-27 11:54:25 CEST
Does this still happen in Mageia 8 or later?
Comment 16 Herman Viaene 2021-05-28 08:53:02 CEST
M8: yes.
Marja Van Waes 2021-05-28 13:44:05 CEST

Whiteboard: MGA5TOO => (none)
Keywords: NEEDINFO => (none)
Source RPM: gksu-polkit-0.0.3-0.git20131130.11 => gksu-polkit-0.0.3-0.git20131130.15.mga8.src.rpm


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