summarylogtreecommitdiffstats
path: root/user-env.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user-env.patch')
-rw-r--r--user-env.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/user-env.patch b/user-env.patch
new file mode 100644
index 000000000000..1216f02ebf7a
--- /dev/null
+++ b/user-env.patch
@@ -0,0 +1,19 @@
+diff --git a/openfortigui/sudo/openfortigui b/openfortigui/sudo/openfortigui
+index 7b2fb8e..80062e6 100644
+--- a/openfortigui/sudo/openfortigui
++++ b/openfortigui/sudo/openfortigui
+@@ -1 +1 @@
+-%sudo ALL=NOPASSWD: /usr/bin/openfortigui
++%wheel ALL=NOPASSWD:SETENV: /usr/bin/openfortigui
+diff --git a/openfortigui/vpnmanager.cpp b/openfortigui/vpnmanager.cpp
+index baede6b..2f5fd1e 100644
+--- a/openfortigui/vpnmanager.cpp
++++ b/openfortigui/vpnmanager.cpp
+@@ -74,6 +74,7 @@ void vpnManager::startVPN(const QString &name)
+ return;
+
+ QStringList arguments;
++ arguments << "-E";
+ arguments << QCoreApplication::applicationFilePath();
+ arguments << "--start-vpn";
+ arguments << "--vpn-name";