La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.
is there like systemd service that's one-shot (run once, then exit) that can disable itself after???
-
is there like systemd service that's one-shot (run once, then exit) that can disable itself after???
effectively, I wanna add a default wallpaper to myublue-niri
image usingswww
, but it seems thatswww
does not have a location it reads any default wallpaper from and it is exclusively configured using theswww
CLI, with data then stored in$HOME/.cache/swww/{output name}
So instead my idea was to ship a small systemd service that runsswww img /usr/share/backgrounds/fedora-workstation/montclair_dark.webp
once, exits, then disable itself / never run again
EDIT: Solved
-
@alexia yes, a user service set as `Type=oneshot` with a target for log-in
-
@alexia hmm, maybe instead of disabling itself you could use
ExecCondition=
to run it only if the file you want is missing? -
@elsactivitypub @alexia doesn't that execute on each login though?
-
-
@elsactivitypub @alexia ah well yeah if just starting with without enabling it is a possibility then it's definitely the best solution
-
@steffo @elsactivitypub
Sadly it isnt a possibility; BlueBuild only hasenabled
/disabled
andmasked
/unmasked
for system and user respectively. -
@alexia @elsactivitypub can you have it try to turn itself off via
Type=oneshot
and a secondExecStart=systemctl disable yourservice
?