From 3c816574d6e5eaed6bbb2abd9a89dc49b4ce87b5 Mon Sep 17 00:00:00 2001 From: Adrian Iain Lam Date: Fri, 5 Dec 2025 18:08:33 +0000 Subject: [PATCH] Fix autostart error on reinstall --- debian/files | 2 +- debian/install | 2 +- debian/postinst | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/files b/debian/files index 7536640..93b8c46 100644 --- a/debian/files +++ b/debian/files @@ -1 +1 @@ -indicator-keyboard-led_1.2-1_source.buildinfo utils optional +indicator-keyboard-led_1.2-2_source.buildinfo utils optional diff --git a/debian/install b/debian/install index a19dfa9..4995313 100644 --- a/debian/install +++ b/debian/install @@ -5,7 +5,7 @@ indicator-keyboard-led-N-off.svg usr/share/icons/hicolor/scalable/apps indicator-keyboard-led-N-on.svg usr/share/icons/hicolor/scalable/apps indicator-keyboard-led-S-off.svg usr/share/icons/hicolor/scalable/apps indicator-keyboard-led-S-on.svg usr/share/icons/hicolor/scalable/apps -indicator-keyboard-led.desktop etc/xdg/autostart +indicator-keyboard-led.desktop usr/share/doc/indicator-keyboard-led indicator-keyboard-led.py usr/bin locale/en/LC_MESSAGES/indicator-keyboard-led.mo usr/share/locale/en/LC_MESSAGES locale/fr/LC_MESSAGES/indicator-keyboard-led.mo usr/share/locale/fr/LC_MESSAGES diff --git a/debian/postinst b/debian/postinst index d657d2b..27f1e66 100755 --- a/debian/postinst +++ b/debian/postinst @@ -12,6 +12,6 @@ db_get indicator-keyboard-led/xdotool if [ -n "$RET" ]; then args="$args --xdotool $RET" fi -sed -i 's|^Exec=.*$|Exec=/usr/bin/indicator-keyboard-led.py'" $args"'|' /etc/xdg/autostart/indicator-keyboard-led.desktop +sed 's|^Exec=.*$|Exec=/usr/bin/indicator-keyboard-led.py'" $args"'|' /usr/share/doc/indicator-keyboard-led/indicator-keyboard-led.desktop > /etc/xdg/autostart/indicator-keyboard-led.desktop -sudo ln -s /etc/xdg/autostart/indicator-keyboard-led.desktop /usr/share/applications/indicator-keyboard-led.desktop +ln -s /etc/xdg/autostart/indicator-keyboard-led.desktop /usr/share/applications/indicator-keyboard-led.desktop -- 2.7.4