Link to home
Start Free TrialLog in
Avatar of Nusrat Nuriyev
Nusrat NuriyevFlag for Azerbaijan

asked on

Run a GUI program from root account withour needing to run terminal.

Hi,

How to run a command from root without terminal?

Image a want to run 10 GUI programs from root.
This means I have to have useless 10 terminals open.
This is a real mess.

Operating system is Fedora Core 20.

Thanks.
Avatar of ozo
ozo
Flag of United States of America image

What do you want to use instead of terminal?
Would you be satisfied running the 10 programs from one terminal?
Why you need a terminal for GUI program?
Run command & and it is no longer bound to terminal.
Avatar of Nusrat Nuriyev

ASKER

ozo, no. Simultaniously.

gheist , because I want to run it as root.
When I start GUI programs it from menu(left bottom corner "F" sign) it starts as a usual user.

The solution is to press Alt+F2, type command and then press settings type root and password then execute.

The question is how I can run GUI programs from root by default, however other programs (non-gui ) will still run as it has been logged in. (i don't want to log in to the system as a root).
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Accepted.
gnome equivalent is gksu
or you can make sudo to not reset $DISPLAY and $HOME.
or you can make sudo to not reset $DISPLAY and $HOME.
1. Does this part apply to gnome?
2. What is $DISPLAY and why echo $DISPLAY gives me an empty string?
Well read manual pages on your system.