Hi ,
The solaris-printmger-wrapper which is the actual script invoked by
Launch->Preferences->Add/Remove Printer
invokes CDE dtaction and hence pop up a Motif dialog which is not themeable.
With integration of gksu, the dialog can simply be replaced by a
one-liner gksu script, as shown below.
Attached also the modified patch,
Solaris/patches/control-center-01-solaris-printmgr.diff
-Ghee
--- /usr/lib/solaris-printmgr-wrapper.orig 2006-11-27
19:42:05.000000000 +0000
+++ /usr/lib/solaris-printmgr-wrapper 2006-12-19 11:39:50.408403000 +0000
@@ -1,22 +1,3 @@
#!/bin/ksh
-dir=$(/bin/mktemp -d -t pmw.XXXXXX 2> /dev/null)
-
-if [[ $? -ne 0 ]]; then
- exit 1
-fi
-
-TT_FILE=$dir/ttauth
-X_FILE=$dir/xauth
-
-set -A tt $(xprop -root -notype TT_SESSION)
-if [[ ${tt[1]} != "=" ]]; then
- /usr/openwin/bin/ttauth extract $TT_FILE
netid=${tt[4]}/${tt[5]}/${tt[8]}/${tt[9]}
- export TTAUTHORITY=$TT_FILE
-fi
-
-/usr/openwin/bin/xauth extract $X_FILE $DISPLAY
-
-XAUTHORITY=$X_FILE /usr/dt/bin/dtaction PrinterAdministratorSu
-
-/bin/rm -rf $dir
+gksu -g -t "Print Manager" -m "Enter root password:" /usr/sbin/printmgr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: control-center-01-solaris-printmgr.diff
Type: text/x-patch
Size: 2151 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20061219/03809d31/attachment.bin>