Results 1 to 6 of 6

Thread: Starting applications from command line?

  1. #1

    Default Starting applications from command line?

    All,
    I am a redhat admin and also use Ubuntu. Installed opensuse on my home machine to give it a whirl. I can't seem to figure out why i can't open gui application from the command line.

    I receive a GTK error when trying to open with sudo. What am i doing wrong?


    EDIT: NM solved my own question, had to add DISPLAY and XAUTHORITY to the sudoers file.

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,453

    Default Re: Starting applications from command line?

    Sudo may not be configured. I have never had any problem opening a console as a user and entering the application name there. If it requires root privileges, I enter su -- give the password and then the application name.

  3. #3

    Default Re: Starting applications from command line?

    Hi,

    if you use KDE, kdesu <application> will generally be the best way to start a graphical application requiring root privileges from the command line.

    There is an equivalent for Gnome, the name of which escapes me right now.

    HTH

    Lenwolf

  4. #4
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Starting applications from command line?

    Quote Originally Posted by lenwolf View Post
    There is an equivalent for Gnome, the name of which escapes me right now.
    If I remember correctly it is just gnomesu.
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,290

    Default Re: Starting applications from command line?

    Correct, kdesu and gnomesu will take care of the DISPLAY and xhost issues.
    Henk van Velden

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

    Default Re: Starting applications from command line?

    On 2011-02-20 22:06, markdjones82 wrote:

    > EDIT: NM solved my own question, had to add DISPLAY and XAUTHORITY to
    > the sudoers file.


    Could you explain what you did?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Posting Permissions

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