[neon/neon/settings/Neon/release] usr/sbin: if the snippy snap exists, use it

Harald Sitter null at kde.org
Tue Jan 18 07:37:15 GMT 2022


Git commit 001d1a8762585b05298ab3082befec254686c4c7 by Harald Sitter.
Committed on 18/01/2022 at 07:36.
Pushed by sitter into branch 'Neon/release'.

if the snippy snap exists, use it

it is portaled by default so we don't need to faff about with
anything

M  +4    -0    usr/sbin/firefox

https://invent.kde.org/neon/neon/settings/commit/001d1a8762585b05298ab3082befec254686c4c7

diff --git a/usr/sbin/firefox b/usr/sbin/firefox
index 6975ac8..4bd7c1d 100755
--- a/usr/sbin/firefox
+++ b/usr/sbin/firefox
@@ -2,6 +2,10 @@
 # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
 # SPDX-FileCopyrightText: 2019 Harald Sitter <sitter at kde.org>
 
+if [ -x /snap/bin/firefox ]; then
+  exec /snap/bin/firefox "$@"
+fi
+
 # Force use of the XDG desktop portal to get tighter Plasma integration.
 
 export GTK_USE_PORTAL=1


More information about the Neon-commits mailing list