[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#824906: dolphin: sudo dolphin doesnt work correctly



Control: tag -1 + confirmed

¡Hola John!

El 2016-05-21 a las 09:01 +0300, John Kirk escribió:
Package: dolphin Version: 4:15.08.3-1 Severity: important

Dear Maintainer,

When running sudo dolphin, it starts in unusable form without style and icons.

Output of Konsole:
... QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setOpacity: Painter not active QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setOpacity: Painter not active QPainter::begin: Paint device returned engine == 0, type: 2 QPainter::setCompositionMode: Painter not active QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap QPixmap::scaled: Pixmap is a null pixmap ...

My general recommendation is to avoid running graphical applications as root.

The kde applications require a working XDG environment which is lost using the default env_reset sudo setting, at the same time in needs a dbus connection for the running user, so you'll need at least:

sudo -E dbus-launch --exit-with-session dolphin

But this will use the configuration files for the user to run the dolphin as root, which is probably what you want, as you might end up creating configuration files with the wrong owner in your home directory.

The tool kdesu takes care of creating a valid environment for the subprocesses, while using the configuration files of the target user, although it's installed as a rather inconvenient location ( /usr/lib/*/libexec/kf5/kdesu ).

And you would need run:
kwriteconfig5 --file kdesurc --group  super-user-command --key super-user-command sudo

To use sudo, as the default in Debian is to use su.

We might want to reconsider the installation path of kdesu, and if possible rename it to kdesu5.

There is also a bug in kdesud (http://bugs.debian.org/807399), that checks for the file being setgid for the nogroup group (which seems to be a non sense test and upstream answer about it was not reassuring at all for process that is supposed to cache the passwords given to it).

Happy hacking,
--
"Seek simplicity, and distrust it." -- Whitehead's Rule
Saludos /\/\ /\ >< `/

Attachment: signature.asc
Description: Digital signature


Reply to: