I have a .desktop file whose Exec= line I want to be run as another user. In a systemd service file, I can achieve this with a User= and Group= option. How to do the same in a .desktop file?
Asked
Active
Viewed 712 times
systemdservices are run as root, and so can switch user. Desktop files are run as the calling user, and so can't switch user. You may want to describe the bigger problem you're trying to solve; that should give you some useful guidance. – Stephen Harris Dec 28 '18 at 02:06gksudodoes. – ARX Dec 28 '18 at 02:36gksudowithin the exec line? – Fox Dec 28 '18 at 05:51