Bug 463927 - kdesu unable to start kwrite
Summary: kdesu unable to start kwrite
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdesu
Classification: Applications
Component: kdesud (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 14:04 UTC by Axel Keller
Modified: 2026-02-11 14:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Keller 2023-01-06 14:04:09 UTC
SUMMARY
***
Starting kwrite in root mode with 'kdesu  -c  kwrite'  the process stops without any messages.

This function is used when dolphin is started in root mode with 'xdg-su -c dolphin' and a text file should be opened with kwrite.
***


STEPS TO REPRODUCE
1.  Install kwrite with YaST
2.  Run:  'kdesu  -c  kwrite'
3. Launch dolphin in root mode, open a text file with kwrite

OBSERVED RESULT
The password is asked in a GUI, then the process stops.

EXPECTED RESULT
The editor kwrite should open as system admin.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  Leap 15.4
(available in About System)
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 

ADDITIONAL INFORMATION
The problem was not before Leap 15.4

       kdesu  -c  kate              the password is asked in a GUI, then the editor appears
       su  -c  kwrite                 the password is asked on the command line, then the editor appears
Comment 1 Tobias Fella 2026-02-11 14:58:39 UTC
Starting dolphin as root is strongly discouraged. KWrite supports starting as the normal user and then elevating its privileges to edit files with different owners