Results 1 to 3 of 3

Thread: Running apps as user gdm

  1. #1
    Join Date
    Dec 2009
    Beans
    286

    Running apps as user gdm

    In Karmic, I could run an app as user gdm by issuing the following command (assume the app is gconf-editor)

    Code:
    gksudo -u gdm dbus-launch gconf-editor
    Now that I've switched to Marverick when I issu the same command I get this:

    Code:
    towheed@GA1A4CH:~$ gksudo -u gdm dbus-launch gconf-editor
    No protocol specifiedNo protocol specified
    
    ** (gconf-editor:19812): CRITICAL **: Failed to parse arguments: Cannot open display:
    I checked my environment variable DISPLAY using:

    Code:
    towheed@GA1A4CH:~$ echo $DISPLAY
    and it returned:
    Code:
    :0.0
    Now I ran the command:

    Code:
    gksudo -u gdm dbus-launch gconf-editor --display=:0.0
    and got the same error as before.

    Has either or both dbus-launch or gksudo changed their behavior os is this a bug. Note that the command does not work with any applications being run as the user gdm.

    Can anyone help me?

  2. #2
    Join Date
    Nov 2010
    Location
    Berlin, Germany
    Beans
    4,534
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Running apps as user gdm

    Seems to have change from Maverick onwards, try this:
    http://ubuntuforums.org/showthread.php?p=10418202

  3. #3
    Join Date
    Dec 2009
    Beans
    286

    Re: Running apps as user gdm

    Yep, that worked. What I did wrong was to add the localhost to the xhost instead of the localuser.

    Thanks.

Bookmarks

Posting Permissions

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