Summary: | No icons show on root session. unable to assign any too. | ||
---|---|---|---|
Product: | [Applications] kdesudo | Reporter: | Eyal Porat <eyal.por> |
Component: | general | Assignee: | Jonathan Riddell <jr> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | amubtdx, bruno+kde, capitan.zap, frank78ac, ilyes.spd, jasonwert, kde-software, kubry, leszek.lesner, m, mityi, postboxwa, reeves.87, stgparris, stu109382, terry.horridge, white.russ |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | strace -o dolphin_strace.txt dolphin |
Description
Eyal Porat
2015-09-28 07:11:31 UTC
Thanks for the bug report. Do you see the icons in the file dialog of, e.g., KWrite if you start is as root? Frank Reininghaus 2015-09-28 15:47:59 UTC Thanks for the bug report. Do you see the icons in the file dialog of, e.g., KWrite if you start is as root? Tried with Kate - OK. In the mean time I use Krusader as root. Also no problems. I am having the same issue with newly installed Kubuntu 15.10 i can confirm this Created attachment 95786 [details]
strace -o dolphin_strace.txt dolphin
I can reproduce this too.
With a root session, dolphin only search for icons in hicolor theme.
See also the strace attachment dolphin_strace.txt.
The scenario was:
#strace -o dolphin_strace.txt dolphin
then close dolphin
I can confirm that aswell on Netrunner 17 As a workaround I found that executing kdesudo -c "KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch dolphin" works like expected. Seems like kdesudo isn't giving its command the correct env variables. (In reply to Leszek Lesner from comment #7) > As a workaround I found that executing > kdesudo -c "KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch > dolphin" > works like expected. > Seems like kdesudo isn't giving its command the correct env variables. Thanks for the update, I'll reassign it to kdesudo then. See also https://mail.kde.org/pipermail/kde-frameworks-devel/2015-December/029228.html I too have this problem when using kdesudo combined with dolphin. I also tested elevating to root via "sudo su" and then launching dolphin, the same error happens there as well. I ran the suggested workaround in comment #7 without kdesudo and can confirm that the workaround of "KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch dolphin" running with sudo su works properly with the icons. I'm not sure if this helps narrow it down but perhaps this means that it's not directly related to kdesudo. I can also confirm this error. Seeing it on Kubuntu 15.10 and fresh install with Neon ppa. Launching any kde5 app (systemsettings5 or dolphin) with "kdesudo -c "KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dbus-launch ..." does fix the issue. Is there any config file that "KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true" can be added so that it doesn't need to be run at the time the kde5 application is launched? Jason, as workaround you can create a file named /etc/sudoers.d/workaround_kde5 : Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" I have no idea why those variables are now needed… Thank you so much, Bruno! That completely did the trick. -jason *** Bug 362045 has been marked as a duplicate of this bug. *** The workaround fixes it for me too. In my case actually logging in as root from lightdm works as well but presents more of a risk. I have also seen this same issue in Kubuntu 16.4.1. The patch in comment 12 entirely fixes it. (In reply to Bruno Patri from comment #12) > Jason, as workaround you can create a file named > /etc/sudoers.d/workaround_kde5 > > Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" > > I have no idea why those variables are now needed… I have tried this in Neon 5.8.2 and cannot see any effect. I have to use the long kdesudo command in comment 7. I have no idea why the file doesn't work, found several ways to make it on different sites, but nothing worked. For those who don't know /etc/sudoers.d/ is specific to Debian based distros like Kubuntu. Non debian based distros do not necessarily load files in this folder by default. /etc/sudoers should be used on theses systems. This file can also be read on Debian based systems but may be overwritten after an update. I have confirmed that creating a file in /etc/sudoers.d with Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" fixes the issue for programs launched using sudo however theme/style/icons/etc are still missing if launched using kdesudo. Is there something that differentiates them? I was under the impression that kdesudo was just the GUI version of sudo. (In reply to Russ White from comment #19) > I have confirmed that creating a file in /etc/sudoers.d with > > Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" > > fixes the issue for programs launched using sudo however > theme/style/icons/etc are still missing if launched using kdesudo. Is there > something that differentiates them? I was under the impression that kdesudo > was just the GUI version of sudo. I found that changing the HOME environment variable fixes problem try executing kdesudo -c "HOME=$HOME dolphin" Thank you very much, Ilyes! Note: A user can e.g. execute kdesudo -c "HOME=/root partitionmanager" to launch KDE Partition Manager if he wants it to use root's theme. (*) (*) Because the user wants to visually make prominent the graphical programs which are executed with privileges, or because the user utilizes a dark theme but KDE Partition Manager works better with a non-dark theme, etc. In that case the KDE Menu Editor can be used to change the existing "KDE Partition Manager" entry, but disabling the "Advanced" > "Run as different user" checkbox because "kdesudo" is already being used. (In reply to Bruno Patri from comment #12) > Jason, as workaround you can create a file named > /etc/sudoers.d/workaround_kde5 : > Defaults env_keep += "KDE_SESSION_VERSION KDE_FULL_SESSION" > I have no idea why those variables are now needed… Great - thanks for getting this fixed. Hint: I spend one hour to get this working since I used "workaround_kde5.txt" as a file name following these instructions [1]. But the README states it clearly: Only files without ~ and . are included. After creating the patch file make sure that both environment variables are present in the sudo session with sudo -i env 1: https://askubuntu.com/questions/690201/icons-not-showing-on-sudo-dolphin-on-15-10 Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you! > If you can reproduce the issue, please change the status to "REPORTED" when
> replying. Thank you!
It is no longer possible to reproduce this bug since
"Executing Dolphin with sudo is not possible due to unfixable security vulnerabilities."
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |