aboutsummaryrefslogtreecommitdiffstats
path: root/src/firecfg/firejail-welcome.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/firecfg/firejail-welcome.sh')
-rwxr-xr-xsrc/firecfg/firejail-welcome.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/firecfg/firejail-welcome.sh b/src/firecfg/firejail-welcome.sh
index b70d7861d..7183b74e1 100755
--- a/src/firecfg/firejail-welcome.sh
+++ b/src/firecfg/firejail-welcome.sh
@@ -4,7 +4,7 @@
4# Copyright (C) 2020-2022 Firejail Authors 4# Copyright (C) 2020-2022 Firejail Authors
5# License GPL v2 5# License GPL v2
6# 6#
7# Usage: firejail-welcome PROGRAM SYSCONFDIR 7# Usage: firejail-welcome PROGRAM SYSCONFDIR USER_NAME
8# where PROGRAM is detected and driven by firecfg. 8# where PROGRAM is detected and driven by firecfg.
9# SYSCONFDIR is most of the time /etc/firejail. 9# SYSCONFDIR is most of the time /etc/firejail.
10# 10#
@@ -12,14 +12,13 @@
12# we will provide a console-only replacement in /usr/lib/firejail/fzenity 12# we will provide a console-only replacement in /usr/lib/firejail/fzenity
13# 13#
14 14
15PROGRAM=$1 15if ! command -v "$1" >/dev/null; then
16SYSCONFDIR=$2 16 echo "Please install $1."
17
18if ! command -v "$PROGRAM" >/dev/null; then
19 echo "Please install $PROGRAM."
20 exit 1 17 exit 1
21fi 18fi
22 19
20PROGRAM="sudo -u $3 $1"
21SYSCONFDIR=$2
23export LANG=en_US.UTF8 22export LANG=en_US.UTF8
24 23
25TITLE="Firejail Configuration Guide" 24TITLE="Firejail Configuration Guide"
@@ -165,7 +164,7 @@ Now, I will apply the changes. This is what I will do:
165 164
166 165
167EOM 166EOM
168 167MSG_RUN+="\n\n"
169if [[ "$run_firecfg" == "true" ]]; then 168if [[ "$run_firecfg" == "true" ]]; then
170 MSG_RUN+=" * enable Firejail for all recognized programs\n" 169 MSG_RUN+=" * enable Firejail for all recognized programs\n"
171fi 170fi