mirror of
https://github.com/deunix-educ/sourizz.git
synced 2026-11-25 04:39:43 +01:00
Add a sourizz-restart script and record the autostart field test
sourizz-restart stops the running daemon (if any), waits until it is gone and starts a new one detached from the terminal; extra arguments go to the new daemon and SOURIZZ_LOG keeps its output. install.sh installs and removes it. The READMEs document it in both languages and now say that autostart was checked on KDE, GNOME, Xfce, Cinnamon and MATE. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -78,7 +78,7 @@ ensure_rust() {
|
||||
}
|
||||
|
||||
if [[ $UNINSTALL -eq 1 ]]; then
|
||||
rm -fv "$BIN/sourizz" "$BIN/sourizz-settings" "$APPS/sourizz.desktop" "$APPS/sourizz-settings.desktop" "$ICONS/sourizz.svg" "$DOCS/LICENSE"
|
||||
rm -fv "$BIN/sourizz" "$BIN/sourizz-settings" "$BIN/sourizz-restart" "$APPS/sourizz.desktop" "$APPS/sourizz-settings.desktop" "$ICONS/sourizz.svg" "$DOCS/LICENSE"
|
||||
rmdir "$DOCS" 2>/dev/null || true
|
||||
rm -fv "${XDG_CONFIG_HOME:-$HOME/.config}/autostart/sourizz.desktop"
|
||||
echo "Uninstalled. Your settings in ${XDG_CONFIG_HOME:-$HOME/.config}/sourizz were kept."
|
||||
@@ -90,6 +90,7 @@ ensure_rust
|
||||
cargo build --release
|
||||
install -Dm755 target/release/sourizz "$BIN/sourizz"
|
||||
install -Dm755 target/release/sourizz-settings "$BIN/sourizz-settings"
|
||||
install -Dm755 packaging/sourizz-restart "$BIN/sourizz-restart"
|
||||
install -Dm644 packaging/sourizz.svg "$ICONS/sourizz.svg"
|
||||
install -Dm644 LICENSE "$DOCS/LICENSE"
|
||||
# Use absolute paths so the launchers work even when ~/.local/bin is not on the desktop's PATH.
|
||||
|
||||
Reference in New Issue
Block a user