diff options
author | Simon Rettberg | 2016-09-20 18:52:56 +0200 |
---|---|---|
committer | root | 2016-09-20 18:53:38 +0200 |
commit | 53c4d5f4e5ed5e16006429c3781f1648664b692a (patch) | |
tree | 5f5ca5b09f2772b1ccb6951a7e1546e03aefd1a0 | |
parent | [run-virt] openslx.exe: Windows NT4.0/2000 compatibility (diff) | |
download | tm-scripts-53c4d5f4e5ed5e16006429c3781f1648664b692a.tar.gz tm-scripts-53c4d5f4e5ed5e16006429c3781f1648664b692a.tar.xz tm-scripts-53c4d5f4e5ed5e16006429c3781f1648664b692a.zip |
[printergui] Support username prefix SLX_* option
-rwxr-xr-x | remote/modules/printergui/data/opt/openslx/scripts/run-virt_print | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/modules/printergui/data/opt/openslx/scripts/run-virt_print b/remote/modules/printergui/data/opt/openslx/scripts/run-virt_print index ba352778..2f98b1ff 100755 --- a/remote/modules/printergui/data/opt/openslx/scripts/run-virt_print +++ b/remote/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=$? |