I want to start gvim as different user (bar) using .desktop file.

When I run gksudo -u bar gvim, nothing happens. (No stdout/stderr output.) Why this command does not start gVim? I tried running it as root (gksudo gvim) and the gVim works as expected.

How can I start gVim using .desktop file as different user?

  • Don't use gvim nor gksudo but with vi an su : Exec=xterm -e su -l otheruser -c 'vi ./.bashrc' in the desktop file ask for the password and open the file in vi in a xterm window. – ctac_ May 27 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.