Bug 482036 - root apps not launching via desktop menu in plasma 6
Summary: root apps not launching via desktop menu in plasma 6
Status: REOPENED
Alias: None
Product: kdesu
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.1.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-29 14:54 UTC by Duns
Modified: 2024-05-31 16:23 UTC (History)
9 users (show)

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


Attachments
the dialog window rejecting my correct password (80.92 KB, image/jpeg)
2024-02-29 14:54 UTC, Duns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duns 2024-02-29 14:54:21 UTC
Created attachment 166193 [details]
the dialog window rejecting my correct password

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. try to launch an app as root from menu
2. you will prompt for the root password
3. your (correct) password is not accepted

OBSERVED RESULT

Password not accepted ("Permission denied.
Possibly incorrect password, please try again.")

EXPECTED RESULT

Password accepted/working

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Core™ i3-7100 CPU @ 3.90GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Manufacturer: MSI
Product Name: MS-7A74
System Version: 1.0

ADDITIONAL INFORMATION

I have followed these instructions (https://bugs.kde.org/show_bug.cgi?id=481940) but unsuccessfully
Comment 1 Duns 2024-02-29 16:07:50 UTC
The only way to launch an app as root from desktop menu, is to use this code:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true [your app, such as krusader]
Comment 2 Nicolas Fella 2024-03-01 19:28:17 UTC
> 1. try to launch an app as root from menu

I don't understand what that means, how exactly do you do this?
Comment 3 Duns 2024-03-01 21:01:09 UTC
I mean : editing menu item -> Advanced - > run as a different user - > root
Comment 4 Duns 2024-03-04 10:34:53 UTC
Any news?
This problem should at least be recognized, I think.
There is some further info I can provide?
Comment 5 Duns 2024-03-06 09:42:16 UTC
Today, after new upgrade neither the above code works: the only way to get a root app is via terminal (sudo + app name).
Comment 6 S. Christian Collins 2024-03-08 03:16:57 UTC
This is easy to reproduce on KDE neon by installing "KSystemLog" from the repositories. Attempting to launch KSystemLog from the K menu will ask for your password, but the password is never accepted and the application can't be launched.
Comment 7 Duns 2024-03-08 07:41:23 UTC
This code works (it's an example: krusader as root):

[Desktop Entry]
Comment=Twin-Panel File Manager
Exec=pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true krusader
GenericName=File Manager
Icon=krusader_user
Name=Krusader-root
NoDisplay=false
Path=
StartupNotify=true
StartupWMClass=krusader
Terminal=false
TerminalOptions=
Type=Application
X-DocPath=krusader/index.html
X-KDE-SubstituteUID=false
X-KDE-Username=root
Comment 8 ssergio-ll 2024-03-13 16:00:47 UTC
Why is it marked as corrected? It still doesn't work unless additional commands are added in the '.desktop' files.
Comment 9 Duns 2024-03-13 16:35:45 UTC
Yes, you're right. It's a temporary workaround. 
But unfortunately the KDE developers have bigger problems to solve, due to the release of Plasma 6...
Comment 10 Patrick Silva 2024-03-17 12:44:47 UTC
Can reproduce with Ksystemlog. Bug 483701 seems related/duplicate.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 11 Duns 2024-05-14 06:37:41 UTC
I don't have KSystemLog installed. And the problem is still there.
So this should not be a duplicate of Bug 483701