Проблема в том, что когда я запускаю приложения в Kubuntu с sudo
или kdesudo
, эти приложения меняют свои визуальные темы, и некоторые из них отображаются с проблемами.
Например:
Следующая очень странная вещь - это вывод Konsole во время kdesudo
:
eugene@Eugene-KubuntuPC:~$ kdesudo dolphin
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QPixmap::scaled: Pixmap is a null pixmap
...
QPixmap::scaled: Pixmap is a null pixmap
QPainter::begin: Paint device returned engine == 0, type: 2
QPixmap::scaled: Pixmap is a null pixmap
QPainter::begin: Paint device returned engine == 0, type: 2
QPixmap::scaled: Pixmap is a null pixmap
...
QPixmap::scaled: Pixmap is a null pixmap
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
"ÐÑоÑеÑÑ Ð¿ÑоÑокола trash неожиданно завеÑÑилÑÑ"
QPixmap::scaled: Pixmap is a null pixmap
...
QPixmap::scaled: Pixmap is a null pixmap
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
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setOpacity: Painter not active
QPainter::begin: Paint device returned engine == 0, type: 2
...
QPixmap::scaled: Pixmap is a null pixmap
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
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Я пытался запускать приложения с переменными окружения, такими как XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR
, но результат не намного лучше:
Я заметил эту проблему в Kubuntu 15.10, но думал, что она будет исправлена в выпуске LTS. Кажется, я был неправ. Как это можно исправить?