Bug 456949 - Root-Krusader via Alt+Umschalt+k is impossible in Kubuntu/Ubuntu 22.04
Summary: Root-Krusader via Alt+Umschalt+k is impossible in Kubuntu/Ubuntu 22.04
Status: RESOLVED NOT A BUG
Alias: None
Product: krusader
Classification: Applications
Component: general (show other bugs)
Version: 2.7.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-20 16:39 UTC by Hanisch
Modified: 2022-08-04 22:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-20437-0.html (2.19 KB, text/html)
2022-07-31 08:35 UTC, Hanisch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanisch 2022-07-20 16:39:44 UTC
After Upgrading/new installing to Kubuntu/Ubuntu 22.04 the Calling of Root-Krusader via Alt+Umschalt+k is impossible also in all other Desktops.

STEPS TO REPRODUCE
1. Start User-Krusader
2. Hit  "Alt+Umschalt+k"
3. Nothing is doing

OBSERVED RESULT
Nothing is doing

EXPECTED RESULT
Starting the Root-Krusader after Passwort entering

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kernel-Version: 5.15.0-41-generic (64-bit )    -     Grafik-Plattform: X11
(available in About System): Ubuntu 22.04
KDE Plasma Version: plasmashell 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Hanisch 2022-07-30 15:50:01 UTC
Can someone tell the procedure how User-krusader call intern the new instance of Root-krusader?
Comment 2 Toni Asensi Esteve 2022-07-30 18:34:21 UTC
Hi, Hanisch

> After Upgrading/new installing to Kubuntu/Ubuntu 22.04 the Calling of Root-Krusader via Alt+Umschalt+k is impossible also in all other Desktops.

It looks related to: https://bugs.kde.org/show_bug.cgi?id=452532  -  https://bugs.launchpad.net/ubuntu/+source/kdesu/+bug/1965439   

> Can someone tell the procedure how User-krusader call intern the new instance of Root-krusader?

You can try using: 
sudo -i krusader    

Did that work :-?
Comment 3 Toni Asensi Esteve 2022-07-30 18:38:27 UTC
You can also try:

     sudo -i KDE_FULL_SESSION=true krusader

so that Krusader is better seen.
Comment 4 Hanisch 2022-07-31 08:31:54 UTC
> You can try using: 
> sudo -i krusader  
That is not the problem. 
Better is:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY krusader

The reason for crashing of Root-krusader via Alt+shift+k is missing of "kdesu" in Kubuntu/Ubuntu 22.04.
~$ krusader
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
09:48:11.184-debug default unknown@0 # System icon theme: "Papirus"
09:48:12.712-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
09:48:12.795-warning default unknown@0 # QWidget::insertAction: Attempt to insert null action
09:48:13.126-warning kf.i18n unknown@0 # Trying to convert empty KLocalizedString to QString.
org.kde.kdesu: Daemon not safe (not sgid), not using it.

Don't need password!!

kf.su: [ ./src/stubprocess.cpp : 225 ]  Unknown request: "ok"

~$ sudo apt install kdesu
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket kdesu kann nicht gefunden werden.

Please change the call of Root-krusader via Alt+shift+k from User-krusader with "kdesu" to "pkexec".
Comment 5 Hanisch 2022-07-31 08:35:32 UTC
Created attachment 151029 [details]
attachment-20437-0.html

Hello,

Am 30.07.22 um 20:38 schrieb Toni Asensi Esteve:
> https://bugs.kde.org/show_bug.cgi?id=456949
>
> --- Comment #3 from Toni Asensi Esteve<toni.asensi@kdemail.net>  ---
> You can also try:
>
>       sudo -i KDE_FULL_SESSION=true krusader
>
> so that Krusader is better seen.
 > ~$ sudo -i KDE_FULL_SESSION=true krusader
That is not the problem.
Better is:
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY krusader

The reason for crashing of Root-krusader via Alt+shift+k is missing of 
"kdesu" in Kubuntu/Ubuntu 22.04.
~$ krusader
QCoreApplication::applicationDirPath: Please instantiate the 
QApplication object first
09:48:11.184-debug default unknown@0 # System icon theme: "Papirus"
09:48:12.712-warning default unknown@0 # QWidget::insertAction: Attempt 
to insert null action
09:48:12.795-warning default unknown@0 # QWidget::insertAction: Attempt 
to insert null action
09:48:13.126-warning kf.i18n unknown@0 # Trying to convert empty 
KLocalizedString to QString.
org.kde.kdesu: Daemon not safe (not sgid), not using it.

Don't need password!!

kf.su: [ ./src/stubprocess.cpp : 225 ]  Unknown request: "ok"

~$ sudo apt install kdesu
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Paket kdesu kann nicht gefunden werden.

Please change the call of Root-krusader via Alt+shift+k from 
User-krusader with "kdesu" to "pkexec".

with regards
Ch. Hanisch
Comment 6 Hanisch 2022-07-31 13:10:18 UTC
The 'kdesu' is always in the System.
~$ apt-file search /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu
kde-cli-tools: /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu
libkf5su-bin: /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu_stub
libkf5su-bin: /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesud
But Alt+shift+k does not work in Kubuntu 22.04. In Siduction (Debian Bookworm/sid) it works well - why?
Comment 7 Toni Asensi Esteve 2022-07-31 23:14:48 UTC
> Please change the call of Root-krusader via Alt+shift+k from 
> User-krusader with "kdesu" to "pkexec".
On <https://help.ubuntu.com/community/RootSudo#Graphical_sudo> it's written that "pkexec is being deprecated by the mainline Ubuntu developers"... 🤷‍

> But Alt+shift+k does not work in Kubuntu 22.04. In Siduction (Debian Bookworm/sid) it works well - why?
In the https://bugs.launchpad.net/ubuntu/+source/kdesu/+bug/1965439 address that I mentioned, it's written that:
    "kdesu was fixed in Debian with:
    https://tracker.debian.org/news/1330116/accepted-kdesu-5940-2-source-into-unstable/
    and fixed in Kinetic with:
    https://launchpad.net/ubuntu/+source/kdesu/5.94.0-0ubuntu2 
    [...]"    
that may be a reason.
Comment 8 Hanisch 2022-08-01 10:06:09 UTC
The solution is found.

Create a File  /etc/sudoers.d/kdesu-sudoers    with following contents   "Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty":

# cat /etc/sudoers.d/kdesu-sudoers
Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
Comment 9 Hanisch 2022-08-01 10:09:02 UTC
Hello,

Am 01.08.22 um 01:14 schrieb Toni Asensi Esteve:
> https://bugs.kde.org/show_bug.cgi?id=456949
>
> Toni Asensi Esteve <toni.asensi@kdemail.net> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          Resolution|WAITINGFORINFO              |---
>              Status|NEEDSINFO                   |REPORTED
>
> --- Comment #7 from Toni Asensi Esteve <toni.asensi@kdemail.net> ---
>> Please change the call of Root-krusader via Alt+shift+k from 
>> User-krusader with "kdesu" to "pkexec".
> On <https://help.ubuntu.com/community/RootSudo#Graphical_sudo> it's written
> that "pkexec is being deprecated by the mainline Ubuntu developers"... 🤷‍
>
>> But Alt+shift+k does not work in Kubuntu 22.04. In Siduction (Debian Bookworm/sid) it works well - why?
> In the https://bugs.launchpad.net/ubuntu/+source/kdesu/+bug/1965439 address
> that I mentioned, it's written that:
>     "kdesu was fixed in Debian with:
>    
> https://tracker.debian.org/news/1330116/accepted-kdesu-5940-2-source-into-unstable/
>     and fixed in Kinetic with:
>     https://launchpad.net/ubuntu/+source/kdesu/5.94.0-0ubuntu2 
>     [...]"    
> that may be a reason.
>
The solution was found:

# cat /etc/sudoers.d/kdesu-sudoers
Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty

with regards
Ch. Hanisch
 
Mein öffentlicher Schlüssel ist auf dem Keyserver 'pool.sks-keyservers.net' unter ch-hanisch@t-online.de
Comment 10 Toni Asensi Esteve 2022-08-04 22:25:00 UTC
> # cat /etc/sudoers.d/kdesu-sudoers
> Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
If it may be helpful for anyone, on the page of the bug
    https://bugs.launchpad.net/ubuntu/+source/kdesu/+bug/1965439
it's seen:
    The issue can be worked around by adding /etc/sudoers.d/kdesu-sudoers with the contents
    Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
    
As it seems that it's not a bug of Krusader (because it depends on the operating system), I'm going to mark this bug as "RESOLVED - NOT A BUG". Anyway, please feel free to write in this bug report if you think it's necessary.