Results 1 to 6 of 6

Thread: Sudo'd apps result in "cannot open display"

  1. #1
    Join Date
    Jun 2014
    Location
    Edmonton, Alberta, Canada
    Posts
    17

    Default Sudo'd apps result in "cannot open display"

    First, I did try to search the forums but did not have any success. I found the search not to be super effective but it could be the user. I've been a SUSE user for almost a decade and I'm currently having a brain fart and can't seem to fix a simple issue. I'm trying to run a sudo'd app "ie: sudo dolphin" in a terminal and I keep getting "cannot open display".

    A normal fix would have been to set the display and export it using " DISPLAY=:0.0; export DISPLAY" but that doesn't seem to work.

    Help?!

    Running KDE on OpenSUSE Factory (currently updated as of today)

  2. #2
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    307

    Default Re: Sudo'd apps result in "cannot open display"

    You can open dolphin as super user under menu/system/filesystem superuser.

  3. #3

    Default Re: Sudo'd apps result in "cannot open display"

    Quote Originally Posted by Penguinclaw View Post
    You can open dolphin as super user under menu/system/filesystem superuser.
    Right.
    And for other applications, use kdesu instead of sudo to run them as root.

    Background: Applications run as a different user are not allowed to open windows in the user's X session by default. And they might need more in the environment than just $DISPLAY, e.g. the address of the current D-BUS session.
    That's nothing new, btw.
    Last edited by wolfi323; 12-Nov-2014 at 13:12.

  4. #4
    Join Date
    Jun 2014
    Location
    Edmonton, Alberta, Canada
    Posts
    17

    Default Re: Sudo'd apps result in "cannot open display"

    Quote Originally Posted by Penguinclaw View Post
    You can open dolphin as super user under menu/system/filesystem superuser.
    D'oh! Didn't know that. thanks!

  5. #5
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    307

    Default Re: Sudo'd apps result in "cannot open display"

    Quote Originally Posted by cmscritic View Post
    D'oh! Didn't know that. thanks!
    You're welcome

  6. #6
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    3,974

    Default Re: Sudo'd apps result in "cannot open display"

    Quote Originally Posted by cmscritic View Post
    First, I did try to search the forums but did not have any success. I found the search not to be super effective but it could be the user.
    I have never found a search function in a forum that seems of any real value.

    Instead, I go here:
    https://duckduckgo.com/

    and enter a search such as
    Code:
    opensuse sudo "cannot open display"
    -Gerry Makaro
    Fraser-Bell Info Tech
    Solving Tech Mysteries since the Olden Days!
    ~~
    If I helped you, consider clicking the Star at the bottom left of my post.

Posting Permissions

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