Bug 467948 - root Systemsettings dont match language
Summary: root Systemsettings dont match language
Status: RESOLVED NOT A BUG
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: 5.27.3
Platform: Fedora RPMs Other
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 22:23 UTC by Henning
Modified: 2023-04-05 16:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning 2023-03-29 22:23:20 UTC
SUMMARY
Sometimes you need to use root GUI applications and its really nice this is possible. I guess because its nieche its not very known and there may be many hidden bugs.

You launch root dolphin like that: :
pkexec env 'DISPLAY=$DISPLAY' 'XAUTHORITY=$XAUTHORITY' KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin

STEPS TO REPRODUCE
1.  Launch Dolphin as root
2.  See if your non QWERTY keyboard has the right settings
3.  launch sudo systemsettings to adapt it

OBSERVED RESULT
The language is adapted correctly, the keyboard is wrong.

EXPECTED RESULT
The keyboard should be adapted too. This in general seems to be a way more common issue than language detection.

SOFTWARE/OS VERSIONS
Fedora 37
KDE 5.27.3
Comment 1 Nate Graham 2023-04-03 23:21:24 UTC
Don't launch System Settings as root. This is unsupported and *will* cause system breakage the more you do it. Just Say No. :)
Comment 2 Henning 2023-04-04 09:42:10 UTC
there is no other way to use dolphin with root folders. You cant create files in these folders. I heard there is some polkit integration, in kwrite for sure, but not sufficiently in dolphin.
Comment 3 Nate Graham 2023-04-04 13:51:11 UTC
1. Don't run Dolphin as root either to manage root-owned stuff; we have kio-admin for that. It is *strongly* recommended to use kio-admin instead of using hacky workarounds to open Dolphin as root.
1. System Settings isn't connected to Dolphin in that way; even if you do want to open Dolphin as root, you don't also need to open System Settings as root.
Comment 4 Henning 2023-04-04 14:01:03 UTC
Thank you! I never heard of this and entering "admin:///" in the location bar doesnt work, but launching from terminal does. 

I will use that, as the XWayland Dolphin was a really dirty workaround. But I just didnt know of this feature.
Comment 5 Bug Janitor Service 2023-04-04 14:02:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/dolphin/-/merge_requests/527
Comment 6 Nate Graham 2023-04-05 16:44:21 UTC
Git commit 70e20a310a55a52d63077fbd62f3bbe0c642a9b5 by Nate Graham.
Committed on 05/04/2023 at 16:17.
Pushed by ngraham into branch 'master'.

Make "don't run me with sudo/kdesu" message informative

We tell users what not to do, but we don't tell then what to do instead.
At one point we told them to just use Dolphin normally and the polkit
integration would kick in, but that work ended up being reverted and
abandoned. Instead, tell them to use kio-admin, which exists as a
released product and will hopefully not get removed anytime soon.

M  +8    -2    src/main.cpp

https://invent.kde.org/system/dolphin/commit/70e20a310a55a52d63077fbd62f3bbe0c642a9b5