From 157524b7cb76c5044a27f4a9e373ee04a9da3c71 Mon Sep 17 00:00:00 2001 From: Ahmad Draidi Date: Tue, 9 Apr 2024 18:26:52 +0400 Subject: [PATCH] Use arcan from setuid-programs if available --- distr/durden | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/distr/durden b/distr/durden index ab431ce..8672556 100755 --- a/distr/durden +++ b/distr/durden @@ -1,5 +1,11 @@ #!/bin/sh +if [ -n "$(command -v /run/setuid-programs/arcan 2>/dev/null)" ]; then + ARCAN_CMD="/run/setuid-programs/arcan" +else + ARCAN_CMD="@ARCAN_STORE_PATH@" +fi + arcan_base=${HOME}/.arcan applname="$(basename $0)" distargs="" @@ -98,11 +104,11 @@ while true; do starttime=$(date +%s) if [ -d "${arcan_logpath}" ]; then - if arcan ${distargs} -b "$applname" "$applname" "$@" >"${arcan_logpath}/${applname}_${starttime}.log" 2>&1; then + if "${ARCAN_CMD}" ${distargs} -b "$applname" "$applname" "$@" >"${arcan_logpath}/${applname}_${starttime}.log" 2>&1; then exit fi else - if arcan ${distargs} -b "$applname" "$applname" "$@"; then + if "${ARCAN_CMD}" ${distargs} -b "$applname" "$applname" "$@"; then exit fi fi -- 2.41.0 href='/guix/tree/graph.js?id=dac3fc069287ca2233e941c12d305954ad30f947'>treecommitdiff
path: root/graph.js
-02-18
AgeCommit message (Expand)Author
2016-12-14graph: Add d3js backend....Ricardo Wurmus
profiles: 'profile-derivation' rejects unsupported packages....Ludovic Courtès
2021-08-29gnu: bootloader: Support multiple targets....Maxim Cournoyer
2021-04-29diagnostics, ui: Adjust to 'read-error' and 'syntax-error' in Guile 3.0.6....Ludovic Courtès
2021-02-17scripts: system: Accept <image> records as input....Mathieu Othacehe
2021-02-17scripts: system: Remove 'vm-image' command....Mathieu Othacehe
2021-01-30guix system: Test 'extension-graph' and 'shepherd-graph'....Ludovic Courtès
2021-01-19system: Rename 'disk-image' command 'image'....Mathieu Othacehe
2021-01-13services: shepherd: 'shepherd-service-type' requires documentation....Ludovic Courtès
2020-11-06tests: Test "guix system search ."....Ludovic Courtès
2020-10-02gexp: 'local-file' warns when passed a non-literal relative file name....Ludovic Courtès
2020-09-30scripts: system: Add support for image-type....Mathieu Othacehe
2020-06-08system: examples: Add bare-hurd.tmpl....Jan (janneke) Nieuwenhuizen