Search code examples
linuxubuntux11gnomesudo

X11: run a gnome app as another user


I have ubuntu + x11 + gnome.

I want to run a graphical application as another user.

However, when I start it from the command line using sudo -u otheruser app I get the error "No protocol specified".

How can I work arround this?


Solution

  • Use

    xdg-su -u user -c command