https://bugs.kde.org/show_bug.cgi?id=373944

--- Comment #25 from PK <pieterkristen...@gmail.com> ---
100% remedy:
In the files /usr/share/applications/org.kde.PartitionManager.desktop and
/usr/share/applications/org.kde.krusader.root-mode.desktop (for Krusader-root,
same issue) one or two things have to be changed. In my opinion kdesudo is to
blame for the whole thing. That is IN NEON.

- replace X-KDE-SubstituteUID=true by X-KDE-SubstituteUID=false
that gives you the chance to change the behaviour of kdesudo yourself. And then

- in /usr/share/applications/org.kde.PartitionManager.desktop replace
Exec=partitionmanager by Exec=kdesudo -c "HOME=$HOME partitionmanager
and in
- /usr/share/applications/org.kde.krusader.root-mode.desktop replace
Exec=krusader" -qwindowtitle %c %u by Exec=kdesudo -c "HOME=$HOME krusader"
-qwindowtitle %c %u

Easiest is to use sed:
 sudo sed -i 's/X-KDE-SubstituteUID=true/X-KDE-SubstituteUID=false/'
/usr/share/applications/org.kde.PartitionManager.desktop
    sudo sed -i 's/Exec=partitionmanager/Exec=kdesudo -c "HOME=$HOME
partitionmanager"/' /usr/share/applications/org.kde.PartitionManager.desktop
    sudo sed -i 's/X-KDE-SubstituteUID=true/X-KDE-SubstituteUID=false/'
/usr/share/applications/org.kde.krusader.root-mode.desktop
    sudo sed -i 's/Exec=krusader" -qwindowtitle %c %u/Exec=kdesudo -c
"HOME=$HOME krusader" -qwindowtitle %c %u/'
/usr/share/applications/org.kde.krusader.root-mode.desktop

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to