Results 1 to 3 of 3

Thread: Problem running applications with sudo

  1. #1
    Join Date
    Jul 2011
    Location
    India
    Posts
    81

    Default Problem running applications with sudo

    Hi,
    I faced a problem with sudo and made a thread for that. And finally, i got a suggestion to reinstall sudo. Now, sudo works right for wvdial. But, when I type sudo dolphin or some other application I receive error messages. Also, when I get super user privileged by su and typing password, and then type sudo dolphin, it returns some bus error.
    and tells to input something called "export $(dbus-launch)" and then try sudo, and when i do it it comes right. Now, what is wrong with my sudo?

    Here is the complete output.
    Code:
    anish@thinkpad:/etc/sysconfig> sudo kwrite displaymanager
    kwrite: cannot connect to X server 
    anish@thinkpad:/etc/sysconfig> kwrite displaymanager
    anish@thinkpad:/etc/sysconfig> su
    Password: 
    thinkpad:/etc/sysconfig # kwrite displaymanager
    kwrite(3614)/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-thinkpad.openSUSE/kdeinit4__0
    Warning: connect() failed: : Connection refused
    KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi directly
    drkonqi(3615)/kdeui (kdelibs): Session bus not found 
    To circumvent this problem try the following command (with Linux and bash) 
    export $(dbus-launch) 
    thinkpad:/etc/sysconfig # export $(dbus-launch)
    thinkpad:/etc/sysconfig # kwrite displaymanager
    Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
    kbuildsycoca4 running...
    thinkpad:/etc/sysconfig # kbuildsycoca4 running...
    kbuildsycoca4(3899) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
    Thankyou,
    Anish
    Religion is just another habit of human race.

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Problem running applications with sudo

    On 2012-05-25 16:46, thinkanish wrote:

    > Here is the complete output.


    I don't know about sudo, but I do about su: don't use "su", use "su -".

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,973

    Default Re: Problem running applications with sudo

    When you use KDE (you do not say, but I guess because you want to start kwrite) you use kdesu for starting a GUI program, not sudo.

    Please ALLWAYS tell what version of openSUSE you use and if you use a desktop, tell which one. We can not guess this.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •