[neon/neon/settings/Neon/release-lts] /: add a warning about LTS nearing EOL
Harald Sitter
null at kde.org
Wed Apr 21 13:39:04 BST 2021
Git commit 97ac90d8af3f8047706e959bf374d423dc8b64b1 by Harald Sitter.
Committed on 21/04/2021 at 10:03.
Pushed by sitter into branch 'Neon/release-lts'.
add a warning about LTS nearing EOL
it was a bit dodgey that we had no GUI notification of it. at the same
time we still don't know if there are even any users on the edition.
let's do the bare minimum. on LTS we'll now show a not localized message
about the EOL and point to the wiki (which has details and points to the
blog - the wiki has a nicer url which seems important since I can't make
intractable links in kdialog :shrug:)
advantage is that this didn't require actual engineering in comparison
to refitting distro-release-upgrader. also no useless work for
translators. we don't localize the blog or wiki so there'd be no point.
this currently has a "dont show again" option but we may want to drop
that as we get closer to the EOL to ensure people haven't forgotten
A +10 -0 etc/xdg/autostart/lts_eol.desktop
A +16 -0 usr/lib/neon_update/lts_eol.sh
https://invent.kde.org/neon/neon/settings/commit/97ac90d8af3f8047706e959bf374d423dc8b64b1
diff --git a/etc/xdg/autostart/lts_eol.desktop b/etc/xdg/autostart/lts_eol.desktop
new file mode 100644
index 0000000..5d1a9bd
--- /dev/null
+++ b/etc/xdg/autostart/lts_eol.desktop
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+# SPDX-FileCopyrightText: 2021 Harald Sitter <sitter at kde.org>
+[Desktop Entry]
+Exec=/usr/lib/neon_update/lts_eol.sh
+Icon=dialog-warning
+Type=Application
+X-KDE-autostart-phase=1
+OnlyShowIn=KDE
+
+Name=Neon LTS End of Life
diff --git a/usr/lib/neon_update/lts_eol.sh b/usr/lib/neon_update/lts_eol.sh
new file mode 100755
index 0000000..3249282
--- /dev/null
+++ b/usr/lib/neon_update/lts_eol.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
+# SPDX-FileCopyrightText: 2021 Harald Sitter <sitter at kde.org>
+
+set -e
+
+. /etc/os-release
+
+if [ "$VARIANT_ID" != "user-lts" ]; then
+ exit 0
+fi
+
+exec kdialog \
+ --dontagain neon-eolrc:LTS \
+ --icon dialog-warning \
+ --sorry 'Neon LTS is nearing its end of life. Switch now!\n\nhttps://userbase.kde.org/Neon/LTS/EOL'
More information about the Neon-commits
mailing list