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

Bug#824906: dolphin: sudo dolphin doesnt work correctly



Hello,


sudo -E dbus-launch --exit-with-session dolphin works well.

I didn't find kdesu in Debian testing:

~$ apt search kdesu
Sorting... Done
Full Text Search... Done
kde-cli-tools/testing,now 4:5.4.3-1 amd64 [installed]
  tools to use KDE services from the command line

kde-cli-tools-data/testing,now 4:5.4.3-1 all [installed]
  tools to use kioslaves from the command line

kde-cli-tools-dbg/testing 4:5.4.3-1 amd64
  tools to use kioslaves from the command line

kdesudo/testing,now 3.4.2.4-2 amd64 [installed]
  sudo frontend for KDE

libkdesu5/testing,now 4:4.14.14-1+b2 amd64 [installed]
  Console-mode Authentication Library for the KDE Platform

libkf5su-bin/testing,now 5.16.0-1 amd64 [installed]
  runtime files for kdesu

libkf5su-data/testing,now 5.16.0-1 all [installed]
  translation files for kdesu

libkf5su-dev/testing 5.16.0-1 amd64
  development files for kdesu

libkf5su5-dbg/testing 5.16.0-1 amd64
  debug symbols for kdesu

$ kdesu
bash: kdesu: command not found

Best wishes,
John



Quoting Maximiliano Curia <maxy@debian.org>:

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 RuleSaludos /\/\ /\ >< `/





-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator™ to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
No Bandwidth Quotas!   15GB disk space!
Commercial and Bulk Mail Options!


Reply to: