Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Fedora 14

i can run a program with another user with:

(command before): xhost local:transmission-user

the command: sudo -u transmission-user -- /usr/bin/transmission-gtk &

from the gnome-terminal.

But:

echo -e '#!/usr/bin/env xdg-open\n\n[Desktop Entry]\nVersion=1.0\nType=Application\nTerminal=true\nIcon[en_US]=gdu-encrypted-lock\nName[en_US]=transmission-user\nExec=sudo -u transmission-user -- /usr/bin/transmission-gtk &\nName=transmission-user\nIcon=gdu-encrypted-lock' > transmission-user.desktop chmod +x transmission-user.desktop

it doesn't work, if i put the command in a .desktop file.

Why?

share|improve this question
2  
just to be sure: you made sure you don't need to type a pasword? otherwise you'd want to use something like gksu - or visudo... –  iiegn Feb 8 '11 at 17:58
    
i don't need password because this: pastebin.com/raw.php?i=sZvT7gf5 –  LanceBaynes Feb 8 '11 at 18:05

1 Answer 1

Replacing

Exec=sudo -u username -- /usr/bin/xeyes &

with

Exec=sudo -u username -- /usr/bin/xeyes

worked for me. (remove the "&" at the end of the Exec line)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.