overview: partiton manager 3 still doesn't take over the system theme in Neon. steps to reproduce: 1) choose a non-standard system theme in plasmashell (e.g. different colors or different system font), 2) then start up partition manager actual results: partition manager 3 didn't take over the new system font and color expected results: patition manager adapts to the system theme. I read here https://stikonas.eu/wordpress/2016/12/18/kde-partition-manager-3-0/ that with partition manager 3 the theming (in Neon and Kubuntu) "is no longer broken". I regret to say that I don't see this. Partition manager still doesn't use the system font and doesn't use the system colors.
Created attachment 102891 [details] partition manager showing wrong font and color I use andika as system font and mainly orange colors. Both are ignored by partition manager
could this behaviour be the result of a missing dependency in my Neon system?
(In reply to PK from comment #2) > could this behaviour be the result of a missing dependency in my Neon system? I'll download Neon CD and try it but most likely you need to change theme for root user.
Yeah, you indeed need to change root theme too. Simplest way is to copy (or link) ~/.config/kdeglobals to /root/.config/kdeglobals. This can't be fixed from within KDE Partition Manager.
Although, strangely you don't even get Breeze style in your screenshot. Breeze works fine here in neon. Make sure you are not running "sudo partitionmanager". KDE Partition Manager will properly restart itself with kdesu.
I copied ~/.config/kdeglobals to /root/.config/kdeglobals and things didn't get better. Then I tried linking (that would be a very elegant solution!) but it also had no effect.
While doing this I used Krusader in root-modus. I noticed that Krusader suffers from exactly the same issue.
(In reply to PK from comment #7) > While doing this I used Krusader in root-modus. I noticed that Krusader > suffers from exactly the same issue. Can you try the same thing in Neon Live CD?
Yes I can. But it will take some time. btw. my system is completely up to date. It would be very interesting if doing this on a live-cd would make it different.
I did the same in a live-cd from Neon. I just downloaded it. It makes no difference.
How exactly are you launching partition manager, I now talked to guys on IRC on #kde-neon and they report the same results as me, it works for them.
just by clicking on the launcher icon in the menu. Immediate after I do so I have to enter my password.
(In reply to PK from comment #12) > just by clicking on the launcher icon in the menu. Immediate after I do so I > have to enter my password. strange, how can this happen :(. It works for me and those kde-neon developers I talked to. Live CD environment should be the same for everybody. So when you enter your password command should be something like: KDE_FULL_SESSION=true QT_QPA_PLATFORM=xcb partitionmanager --dontsu Well, neon developers also suggested me to add QT_QPA_PLATFORMTHEME=kde when theme is not defined, but this will have to wait till the next version. E.g. even if you run "sudo QT_QPA_PLATFORMTHEME=kde partitionmanager" the theme should be breeze by default and not that ugly unthemed version like in screenshot
I was doubting myself now. So I tried again with the live-usb I just downloaded and made. I altered nothing but the workspace theme. I chose plasma dark. Then I installed partition editor and you see the result in my second screenshot
Created attachment 102902 [details] results from within live-usb
Created attachment 102903 [details] partionmanager started up with sudo QT_QPA_PLATFORMTHEME=kde partitionmanager
I have a script that I run when I install Neon (or kubuntu). Thanks to our brainstorm on this place I added the lines: sudo sed -i 's/#Exec=partitionmanager/sudo QT_QPA_PLATFORMTHEME=kde partitionmanager/' /usr/share/applications/org.kde.PartitionManager sudo sed -i 's/#Exec=krusader -qwindowtitle %c %u/sudo QT_QPA_PLATFORMTHEME=kde krusader/' /usr/share/applications/org.kde.krusader.root-mode to that script. Now it is ok. Thank you.
Excusez moi... I made a mistake. The sed commands must be: sudo sed -i 's/#Exec=partitionmanager/Exec=sudo QT_QPA_PLATFORMTHEME=kde partitionmanager/' /usr/share/applications/org.kde.PartitionManager sudo sed -i 's/#Exec=krusader -qwindowtitle %c %u/Exec=sudo QT_QPA_PLATFORMTHEME=kde krusader/' /usr/share/applications/org.kde.krusader.root-mode
Ok, so you have temporary workaround and I'll try to improve the situation even more in later releases with that QT_QPA_PLATFORMTHEME variable. Although, I still don't understand why nobody else sees this... So strange.
I will bother you one more time. I hope you won't mind. I started up the live-usb in an old desktop (amd athlon 4400+ cpu, old nvidia graphic card). The laptop I was talking about yesterday is a seven years old Dell (intel centrino mobile processor, intel intgrated graphic card). So you can say these machines are totally different. I installed partitionmanager in the live-usb on the amd/nvidia desktop and partitionmanager appeared "ugly and unthemed" as you so accurately put it.
Created attachment 102919 [details] AMD .desktop file
When I execute exactly the same .desktop file from the same location on my intel based laptop I get this (see attachment "intel desktop file"
Created attachment 102920 [details] Intel desktop file
On the German Neon forum I saw a workaround for the problem that seems to work excellent http://www.kde-neon.de/topic/keine-icons-und-theme-als-root/. They suggest you make a file called "workaround_kde5" with only one line in it namely: Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" and sudo cp it to the folder /etc/sudoers.d/ That could do the trick.
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
Note that 'kdesudo' is provided by Kubuntu base, while 'kdesu' is what KDE developers provide. Could you please check if 'kdesu' has the same issue? If yes, bugs for 'kdesu' are tracked in this bug tracker.
thank you for your suggestion. I keep testing on my two computers (one intel based and one amd based) and I keep getting unexpected (and different) results. I hope I get so far that I can make a bug out of it.
I still do not understand what is wrong. But I now believe it has very much to do with this bug https://bugs.launchpad.net/ubuntu/+source/dolphin/+bug/1509562
For version 3.1 I think I'll also pass $HOME environmental variable to keep user home dir and theming.