Skip to content

Instantly share code, notes, and snippets.

@levisre
Created July 13, 2015 13:44
Show Gist options
  • Select an option

  • Save levisre/eef9845fb8b9a7227545 to your computer and use it in GitHub Desktop.

Select an option

Save levisre/eef9845fb8b9a7227545 to your computer and use it in GitHub Desktop.
Launch Teamviewer manually without adding teamviewerd.service to startup list
#!/bin/sh
IS_DAEMON_RUNNING="$(ps ax | grep teamviewerd | grep -v grep)"
if [ -z "${IS_DAEMON_RUNNING}" ];
then
echo "Starting Teamviewer Daemon..."
gksu systemctl start teamviewerd.service
echo "Teamviewer Daemon started. Launching Teamviewer..."
exec teamviewer
else
echo "Launching Teamviewer..."
exec teamviewer
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment