The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Run GUI programs as root

asked 2013-10-08 23:19:19 +0000

gagou9 gravatar image

Hi !

I just want to run GUI programs as root. Such as unetbootin.

There is a way i'm sure ! I tried i3-msg exec su -c unetbootin but of course it would never ask me for the password. I also tried doing i3-msg exec unetbootin as root, didn't work ("i3-msg: Could not connect to i3 on socket "/tmp/i3-ipc.sock": No such file or directory").

Any idea ?

Cheers ! Gaël

edit retag flag offensive close merge delete

Comments

gagou9 gravatar imagegagou9 ( 2013-10-08 23:23:01 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-10-09 09:30:00 +0000

Gksudo?

Or open a terminal and hit sudo command?

edit flag offensive delete link more

Comments

Hey ! That's what I tried first, got No protocol specified unetbootin: cannot connect to X server :0.0 gksu from Dmenu doesn't work, neither from the terminal.

gagou9 gravatar imagegagou9 ( 2013-10-09 11:01:35 +0000 )edit

That looks like a different problem. can you open unetbootin from a terminal? It works just fine for me.

bruno.braga gravatar imagebruno.braga ( 2013-10-18 03:06:06 +0000 )edit

Hi! Now that gksu is installed, when launching unetbootin from a terminal, I get asked for root password. I think unetbootin tries gksu/gksudo/whatever gives root rights. Before all this I had kind of a "cannot connect to display :0" or something !

gagou9 gravatar imagegagou9 ( 2013-10-18 11:56:59 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-08 23:19:19 +0000

Seen: 888 times

Last updated: Oct 09 '13