Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-12-03 11:36:32

BFG
Member
Registered: 2018-06-06
Posts: 29

Batch script to deploy entries to autostart

All the advice on adding entries to autostart do so from a GUI perspective. What I'm looking for is a way to make the same from the command line, which will then be added to a batch script for deploying setups to new users.

E.g. (not my actual use case, but a good example):
Name: Transmission
Command: /usr/bin/transmission-gtk -m
Comment: Torrent client



Searching hasn't helped, as all the results are about how to add a batch script into autostart so it runs on login.

Offline

#2 2020-12-03 12:11:09

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Batch script to deploy entries to autostart

You create a Transmission.desktop file either in /etc/xdg/autostart (for all users) or ~/.config/autostart (just that user), with the appropiate parameters (many of them optional), more or less like this:

[Desktop Entry]
Type=Application
Name=Transmission
Comment=Torrent client
Exec=/usr/bin/transmission-gtk -m
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false

Hope it helps, tell us how it goes!

Offline

#3 2020-12-03 14:56:53

BFG
Member
Registered: 2018-06-06
Posts: 29

Re: Batch script to deploy entries to autostart

Excellent - just what I needed, thanks smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 8 queries executed - Memory usage: 521.12 KiB (Peak: 521.74 KiB) ]