Marty Oehme
34fca7670f
Main issue the restart delay fixes is that services don't wait for X to be ready on startup (which is bad if the application being started requires X being ready to actually work.) I have still not found a way to work around waiting for X being ready other then the ugly delay hack (for systemd --user modules at least). However, the delay can be --- in most cases --- smaller than 5 seconds. All my machines start reasonably fast and have X up and running from pressing login to staring at the wallpaper in a couple seconds at most. If services don't start correctly and the error is X not being ready, increase the startup delay once again.
12 lines
322 B
Desktop File
12 lines
322 B
Desktop File
[Unit]
|
|
Description=Alacritty window hidden on i3 scratchpad
|
|
|
|
[Service]
|
|
Type=simple
|
|
# workaround to allow relative executable invocation (i.e. current users' home dir)
|
|
ExecStart=/bin/bash -c 'alacritty --title "dropdown-terminal" --class Alacritty,scratchpad'
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=default.target
|