Description of problem: i try edit a file by konsole with kwrite and he crash Version-Release number of selected component (if applicable): Mageia 3 KDE 4.9.90 How reproducible: [root@localhost aranud]# kwrite /etc/urpmi/skip.list kwrite(364)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) KCrash: Application 'kwrite' crashing... KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/root/.kde4/socket-localhost/kdeinit4__0 Warning: connect() failed: : Aucun fichier ou dossier de ce type KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly drkonqi(369)/kdeui (kdelibs): Session bus not found To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) thank you
Source RPM: (none) => kwrite
In root only su - password he run but with error : [root@localhost Devel-3-x86_64]# kwrite url KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") KUrl("") QSqlQuery::exec: database not open KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") KUrl("") KUrl("") KUrl("file:///etc/urpmi/mediacfg.d/Devel-3-x86_64/url") [root@localhost Devel-3-x86_64]# QSqlQuery::exec: database not open ^C [root@localhost Devel-3-x86_64]# QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open
(In reply to comment #0) > Description of problem: > i try edit a file by konsole with kwrite and he crash > [root@localhost aranud]# kwrite /etc/urpmi/skip.list > kwrite(364)/kdeui (kdelibs): Session bus not found > To circumvent this problem try the following command (with Linux and bash) > export $(dbus-launch) See if this works for you, https://bugs.mageia.org/show_bug.cgi?id=5194#c8 If so, this bug report can be marked as duplicate of 5194.
CC: (none) => junk_no_spam
CC: (none) => nicolas.lecureuil, thierry.vignaud
please: 1) enable the core release debug medium 2) install the following packages: gdb kate-debug qt4-debug kdebase4-debug 3) run the "gdb -q kwrite" 4) type "run" in order to start kwrite from gdb 5) when it crashes, type "bt" then paste the backtrace you got in some text file you'll attach to this bug report (please do NOT paste it directly as a comment as it would be mangled)
CC: (none) => balcaen.johnKeywords: (none) => NEEDINFO
kwrite is looking for a dbus session. If you're switching to a root session you should use su - & then you'll be able to use kwrite as root. Regarding the error noticed with the use of "su -", nothing happens here.
Ever confirmed: 1 => 0Status: NEW => UNCONFIRMED
Created attachment 3343 [details] error in (su -)it is very long, terminal cut :(
CC: thierry.vignaud => (none)
same bug in gnome : [root@localhost aranud87]# gedit /usr/share/gnome-shell/theme/gnome-shell.css (gedit:22342): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported ** (gedit:22342): WARNING **: Could not connect to session bus [root@localhost aranud87]#
but it is work fine with "su -" on gnome
does it work with su - on kde ?
I get the same errors, but I follow the instructions in the error, which are also in the bug report: To circumvent this problem try the following command (with Linux and bash) export $(dbus-launch) It works just fine after I e=do the export. --Jeff
Status: UNCONFIRMED => NEWCC: (none) => jeffrobinsSAEEver confirmed: 0 => 1
with su - it is run but there are error : [root@Aranud aranud]# su - [root@Aranud ~]# kwrite /etc/dracut.conf.d/80-my_dm.conf Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) kbuildsycoca4 running... kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032)/kdecore (KSycoca) KSycocaPrivate::checkVersion: Found version 214 , expecting version 216 or higher. kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "k3bsetup.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "plasma-applet-lockout.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(29032) KConfigGroup::readXdgListEntry: List entry Keywords in "plasma-applet-batterymonitor.desktop" is not compliant with XDG standard (missing trailing semicolon). Module "resources" is registered Module "activities" is registered Module "features" is registered This is the current thread id for Activities 2966420288 QThread(0x91c7530) These are the disabled plugins: ("activitymanager_plugin_dummy", "activitymanager_plugin_nepomuk") Initializing plugin: "activitymanager_plugin_slc" Initializing plugin: "activitymanager_plugin_globalshortcuts" This is the current thread id for Activities 3019745088 QThread(0x90a6dc8) Initializing plugin: "activitymanager_plugin_virtualdesktopswitch" VirtualDesktopSwitch::init Module "org.kde.ActivityManager.VirtualDesktopSwitch" is registered Initializing plugin: "activitymanager_plugin_sqlite" Module "org.kde.ActivityManager.Resources.Scoring" is registered QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: Failed to open the database "/root/.kde4/share/apps/activitymanager/resources/database" QSqlError(-1, "Driver not loaded", "Driver not loaded") QSqlQuery::exec: database not open The database doesn't exist, it is being created QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open Upgrading the database version to 1.01 QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open Initializing plugin: "activitymanager_plugin_activityranking" QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: Can't open sqlite database QSqlError(-1, "Driver not loaded", "Driver not loaded") "/root/.kde4/share/apps/activitymanager/activityranking/database" running in thread ActivityRanking QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.7' KUrl("file:///etc/dracut.conf.d/80-my_dm.conf") KUrl("") KUrl("") KUrl("file:///etc/dracut.conf.d/80-my_dm.conf") [root@Aranud ~]# QSqlQuery::exec: database not open ^C [root@Aranud ~]# QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open QSqlQuery::exec: database not open
so this is not a bug. you must use su - to start kde apps as root.
Status: NEW => RESOLVEDResolution: (none) => INVALID
(In reply to comment #10) > with su - it is run but there are error : > > [root@Aranud aranud]# su - > [root@Aranud ~]# kwrite /etc/dracut.conf.d/80-my_dm.conf > Connecting to deprecated signal > QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) Yup, you need another tweak/fix which I provided as a link in Comment 2.