Bug 349650

Summary: Icons are not correctly seen in the "root mode" of Krusader in Kubuntu 15.04
Product: [Applications] krusader Reporter: Toni Asensi Esteve <toni.asensi>
Component: generalAssignee: Davide Gianforte <davide>
Status: RESOLVED FIXED    
Severity: normal CC: andreas_k, davide
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot of the "normal mode" of Krusader
Screenshot of the "root mode" of Krusader
after executing `sudo -E krusader`

Description Toni Asensi Esteve 2015-06-27 10:37:46 UTC
Icons are not correctly seen in the "root mode" of Krusader (the one launched with its red icon) in Kubuntu 15.04, however, they are correctly seen in the "normal mode" of Krusader (the one launched with its blue icon).

I'll attach two screenshots where the differences can be seen (icons, etc.)

I'm available for further testing! Thanks for Krusader!

Reproducible: Always
Comment 1 Toni Asensi Esteve 2015-06-27 10:39:06 UTC
Created attachment 93361 [details]
Screenshot of the "normal mode" of Krusader
Comment 2 Toni Asensi Esteve 2015-06-27 10:40:16 UTC
Created attachment 93362 [details]
Screenshot of the "root mode" of Krusader
Comment 3 Toni Asensi Esteve 2015-06-27 10:53:51 UTC
Note: Krusader was compiled and installed with:
        git clone git://anongit.kde.org/krusader 
        cd krusader
        git checkout plasma
        mkdir -p krusader-kf5-build
        cd krusader-kf5-build
        cmake ../krusader -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC"
        make
        sudo make install
Comment 4 Davide Gianforte 2015-06-27 17:39:35 UTC
From a terminal, launch "sudo -E krusader"; I tried it on a kubuntu 15.04, the problem is that environment variables are not passed with kdesudo; I'll investigate further
Comment 5 Toni Asensi Esteve 2015-06-27 17:59:38 UTC
Created attachment 93369 [details]
after executing `sudo -E krusader`

After executing `sudo -E krusader` the icons are seen (altough using `sudo` and not `kdesudo` for graphical programs has its problems).

Thanks for Krusader!
Comment 6 andreas_k 2015-08-31 12:38:55 UTC
KDE use in root oxygen icons maybe that the problem is from there.
Comment 7 Davide Gianforte 2015-09-16 12:51:50 UTC
Closing this bug; this is a common problem of sudo distros and it's not internal to krusader. Many solutions refer to unlock root login to configure its environment like a standard user.
Comment 8 Toni Asensi Esteve 2016-04-22 08:15:54 UTC
Update: In https://bugs.kde.org/show_bug.cgi?id=353263#c12 there is a way to prepare the system so that `kdesudo`can be used, with its advantages, and so`kdesudo krusader`, `kdesudo kate`, etc. show icons, etc.