From a5ec83e75f74762e30fa929eab2a0d67f934f753fd56685fcd593c069c6f3290 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 20 May 2020 15:29:54 +0000 Subject: [PATCH] Allow option files as well OBS-URL: https://build.opensuse.org/package/show/Printing/gswrap?expand=0&rev=10 --- gswrap | 11 ++++++++++- gswrap.changes | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gswrap b/gswrap index 8f54a17..09e4b33 100644 --- a/gswrap +++ b/gswrap @@ -118,6 +118,10 @@ do esac continue ;; + @*) + opts[o++]="--ro-bind ${arg#@} $home/${arg#@}" + continue + ;; -*) continue ;; @@ -181,7 +185,12 @@ then done done done - opts[o++]="--ro-bind /tmp/.X11-unix /tmp/.X11-unix" +# for x11 in /tmp/.X11-unix /tmp/.XIM-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/.X${DISPLAY##*:}-lock + for x11 in /tmp/.X11-unix + do + test -e "${x11}" || continue + opts[o++]="--ro-bind ${x11} ${x11}" + done opts[o++]="--ro-bind ${XAUTHORITY+"$XAUTHORITY"} $home/.Xauthority" opts[o++]="--setenv XAUTHORITY $home/.Xauthority" opts[o++]="--setenv DISPLAY ${DISPLAY+"$DISPLAY"}" diff --git a/gswrap.changes b/gswrap.changes index 0ca044e..5a5f648 100644 --- a/gswrap.changes +++ b/gswrap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 20 15:29:06 UTC 2020 - Dr. Werner Fink + +- Allow option files as well + ------------------------------------------------------------------- Fri Jan 10 10:51:59 UTC 2020 - Dr. Werner Fink