services: Increase restart period for X services
Dropdown services need an X server to connect to and fail autostarting if there's no available server. HACK Increasing their restart timer will alleviate this problem, *but* it also means the dropdowns will start more slowly when closed by the user. There should be another way to alleviate one issue (start automatically after X is available) without exacerbating the other (restart when you have been closed).
This commit is contained in:
parent
5d4998481f
commit
845dbba848
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ 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=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -6,6 +6,7 @@ Type=simple
|
|||
# workaround to allow relative executable invocation (i.e. current users' home dir)
|
||||
ExecStart=/bin/bash -c 'alacritty --title "dropdown-todo" --class "Alacritty,scratchpad" -e nvim -c ":set nonumber norelativenumber noshowmode noruler laststatus=0 noshowcmd shortmess=F" %h/documents/records/todo.md'
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
Loading…
Reference in a new issue