Skip to content

Commit e3f6c02

Browse files
committed
Privileged subprocess must not be user-writable
and therefore must be launched with pkexec
1 parent 561c8a5 commit e3f6c02

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let BOOT_WAIT = 15; // 15s
4444
let CHECK_INTERVAL = 60*60; // 1h
4545
let NOTIFY = false;
4646
let HOWMUCH = 0;
47-
let UPDATE_CMD = "ptyxis -- /bin/sh -c \"run0 dnf upgrade; echo Done - Press enter to exit; read _\" ";
47+
let UPDATE_CMD = "ptyxis -- /bin/sh -c \"pkexec dnf upgrade; echo Done - Press enter to exit; read _\" ";
4848
let CHECK_CMD = "/bin/bash -c \"/usr/bin/dnf check-update -yq | grep -E 'x86_64|i686|noarch|aarch64' | awk '{print $1,$2}'\"";
4949
let MANAGER_CMD = "";
5050
let PACKAGE_CACHE_DIR = "";

schemas/gschemas.compiled

8 Bytes
Binary file not shown.

schemas/org.gnome.shell.extensions.fedora-update.gschema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</key>
6666

6767
<key name="update-cmd" type="s">
68-
<default>"ptyxis -- /bin/sh -c \"run0 dnf upgrade; echo Done - Press enter to exit; read _\" "</default>
68+
<default>"ptyxis -- /bin/sh -c \"pkexec dnf upgrade; echo Done - Press enter to exit; read _\" "</default>
6969
<summary>Command to run to update packages.</summary>
7070
<description>Command to run to update packages.</description>
7171
</key>

0 commit comments

Comments
 (0)