summaryrefslogtreecommitdiffstats
path: root/core/modules/printergui/data/opt/openslx/scripts/run-virt_print
diff options
context:
space:
mode:
authorJonathan Bauer2016-12-23 13:12:09 +0100
committerJonathan Bauer2016-12-23 13:12:09 +0100
commit6806ae4a850fc7785a8c05304237cf53b5b8f951 (patch)
treeb1dd8413d6c7b9a250251da7f0d49bb52b4ddc57 /core/modules/printergui/data/opt/openslx/scripts/run-virt_print
parentwrong kernel version variable used (diff)
downloadmltk-6806ae4a850fc7785a8c05304237cf53b5b8f951.tar.gz
mltk-6806ae4a850fc7785a8c05304237cf53b5b8f951.tar.xz
mltk-6806ae4a850fc7785a8c05304237cf53b5b8f951.zip
merge with latest dev version (tm-scripts commit f5a59daf8d70a9027118292cd40b18c221897408)
Diffstat (limited to 'core/modules/printergui/data/opt/openslx/scripts/run-virt_print')
-rwxr-xr-xcore/modules/printergui/data/opt/openslx/scripts/run-virt_print6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/printergui/data/opt/openslx/scripts/run-virt_print b/core/modules/printergui/data/opt/openslx/scripts/run-virt_print
index ba352778..2f98b1ff 100755
--- a/core/modules/printergui/data/opt/openslx/scripts/run-virt_print
+++ b/core/modules/printergui/data/opt/openslx/scripts/run-virt_print
@@ -53,6 +53,12 @@ else
errlog "printergui-nogs" "Warning: Cannot validate file prior to printing: gs binary not found"
fi
+# Set username prefix if found
+. /opt/openslx/config
+if [ -n "$SLX_PRINT_USER_PREFIX" ]; then
+ export PWGUI_USERPREFIX="$SLX_PRINT_USER_PREFIX"
+fi
+
# Try to print
$PRINTERGUI "$USER" "$FILE"
RET=$?