How do you make Yate (VoIP telephony) start automatically at startup?
I've read this excellent post about adding Startup Applications on login, what I'd like to know is the startup command for Yate specifically.
Screenshot: Add Startup Program (Ubuntu 14.04)
Bonus point if you can offer a link to a list of common startup application commands!
I doubt if you are able to give the bonus point with one point rep :), but the command for yate
is:
yate-qt4
The commands for globally installed (GUI) applications are found in their corresponding .desktop
files in /usr/share/applications
. It is hard to say what are "common" applications, but you can simply open the (any) file in there (drag it over an opened gedit
window) and look for the first line, starting with Exec=
, followed by the command you are looking for.
OR
You can use a script to read all relevant .desktop
files for you and find the command in it:
#!/usr/bin/env python3
import os
dr = "/usr/share/applications"
for f in [f for f in os.listdir(dr) if f.endswith(".desktop")]:
try:
s = open(dr+"/"+f).read()
if not "NoDisplay=true" in s:
command = [l.split("=")[-1] for l in s.splitlines() if l.startswith("Exec=")][0]
print(f, "|", command)
except:
pass
How to use
- Copy the script into an empty file, save it as
search_commands.py
Run it by the command:
python3 /path/to/search_commands.py
It wil list all commands of GUI applications, globally installed, looking like:
...
guake.desktop | guake
xmind.desktop | XMind
gnome-terminal.desktop | gnome-terminal
idle-python2.7.desktop | /usr/bin/idle-python2.7
xfce4-screenshooter.desktop | xfce4-screenshooter
yate-qt4.desktop | yate-qt4
indicator-multiload.desktop | indicator-multiload
...
As you can see, yate-qt4.desktop | yate-qt4
mentions the command you are looking for is yate-qt4
No comments:
Post a Comment