mdeguzis / RetroRig-ES

(discontinued) EmulationStation flavor of RetroRig. Curated and pre-configured emulation.
Other
24 stars 3 forks source link

Desktop environment can't be detected under sudo/elevated access #6

Open mdeguzis opened 9 years ago

mdeguzis commented 9 years ago

Please see this code section. The command echo $XDG_CURRENT_DESKTOP will show your typical Unity, X-Cinnamon, and so on. For some user, I can't get this environment variable, even using runuser, sudo -u, and other such commands. I've tried many different variations with other commands.

Does anyone have a solid solution?

mdeguzis commented 9 years ago

Should be fixed with latest issues release from https://github.com/alexeevdv/dename/issues/1 . Retesting soon with function. Works fine as script.