Page 1 of 1

autostarting applications

Posted: 10 Oct 2014, 15:25
by OnlyHazeRemains
Hello everyone,

I am running Porteus-LXDE-v3.0.1 with autologin for the Root User. I have installed a teamviewer 6 by downloading the provided .deb and converting it to .xzm (runs an integrated wine emulator). It starts just fine if run in a terminal session via su guest teamviewer6 (it cannot be started as Root user).

I previously tried the KDE-Desktop that had a neat GUI-Option to enable autostart programs even as a different User.
What file do i need to edit / what do i have to do to autostart teamviewer as guest user?

I tried:
- adding a shortcut (create new shortcut => command = su guest teamviewer6, etc) to /root/.config/autostart (works as Guest but not as Root user)
- adding a shortcut to /etc/xdg/autostart (when i did this all entries for "automatically started applications" in the Desktop Session Settings disappeared
- editing /etc/rc.d/rc.local and adding the line su guest /opt/teamviewer/teamviewer/6/bin/teamviewer (teamviewer has its own .xzm; if i type this string into a terminal it starts)
- editing /etc/xdg/lxsession/LXDE/autostart and adding @teamviewer6 and @su guest teamviewer6 and @su guest /opt/teamviewer/teamviewer/6/bin/teamviewer

Thank you for your help.

Re: autostarting applications

Posted: 10 Oct 2014, 18:43
by tome
you use wrong binaries, download tar file ( ... nux.tar.gz) extract and run ./teamviewer,
no problem running as root

Re: autostarting applications

Posted: 12 Oct 2014, 11:54
by OnlyHazeRemains
Got it working now.
For anyone who might have the same problem:

Download the tarball, extract it as Guest user, then add the line

Code: Select all

@ su guest /$your path$/teamviewer6/teamviewer

Code: Select all