Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1632  / 2 Years ago, tue, november 30, 2021, 4:32:37

I want to open slack when startup. What will the command need to set in startup applications preferences?


How to get the right command when setting any other application (e.g skype, vscode, firefox etc) in startup?


[Edit]

There is a browse button in the command input. In which directory can i browse to find that application start command?


More From » 20.04

 Answers
6

Just copy (delete) the application's .desktop file to (from) ~/.config/autostart/


The .desktop files are usually located at /usr/share/applications, but you can create a custom one if you want.


For more info, check out:


http://standards.freedesktop.org/autostart-spec/autostart-spec-0.5.html
and
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html


Example:
~/.config/autostart/oneko.desktop


[Desktop Entry]
Type=Application
Exec=oneko
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=oneko
Name=oneko
Comment[en_US]=The cat
Comment=The cat

[#1800] Wednesday, December 1, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
hirtieve questions
Tue, Sep 28, 21, 00:40, 3 Years ago
Sat, Aug 13, 22, 00:43, 2 Years ago
Fri, Aug 6, 21, 19:02, 3 Years ago
Sun, Feb 19, 23, 04:11, 1 Year ago
;