I'm running a HelpDesk for internal call center employees. All employees have headsets in conjunction with their jobs, and I'm working on a script to remotely launch a minimized Mumble session via SSH in order to better aid in remote support. All remote users are using Linux Mint XFCE.
I followed Oli's top solution to the question How to start a GUI software on a remote Linux PC via SSH, and I used his example to write this bit of code to launch Devilspie (which I've pre-configured to minimize Mumble) and then launch Mumble itself:
export DISPLAY=:0
devilspie & echo loading devilspie
mumble
When I test this code while logged in as the remote admin profile, it works like a charm. Devilspie launches, and then Mumble launches to immediately minimize. My problem, however, is that the end-users I'm trying to support aren't administrators on their workstations. If I run this same script via SSH while the remote machine is logged in as a non-admin user, Devilspie gives me the following error:
No protocol specified
Gdk-WARNING **: devilspie: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
and Mumble gives me the following error:
No protocol specified
mumble: cannot connect to X server :0
Since this same script works flawlessly on an admin profile, I'm presuming that the error may have something to do with permissions. Help! I can't figure out how to launch these applications for a non-admin user.