You are not logged in.

#1 2014-04-17 14:28:48

coopstah13
Member
Registered: 2009-10-29
Posts: 16

gnome 3.12 cannot launch gnome-terminal with sudo

I am suffering from a problem that seems similar to the thread https://bbs.archlinux.org/viewtopic.php?id=180103 and https://bbs.archlinux.org/viewtopic.php?pid=1402702 but since they are marked solved I am opening my own.

My real problem is I use this encrypted USB stick called an ironkey. Without going into too much detail, in order to unlock the encrypted partition on it I need to run an executable on it, typically like this:

sudo /run/media/ccooper/IronKey/linux/ironkey

I am getting the error

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 1

The ironkey launcher for some reason spawns a new terminal to ask for my passphrase, which is the problem.
I have narrowed it down to just being unable to launch gnome-terminal with sudo or as root.

So in summary, i can launch a gnome-terminal as my normal user, but not with sudo. I also cannot sudo -i and launch a gnome-terminal either.

I have run the localectl and localegen commands, as described as the "fix" but they do not help me.

# localectl 
   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

Offline

Board footer

Powered by FluxBB