summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/autosetupprintqueues
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-12-16 16:42:58 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-12-16 16:42:58 +0000
commit65f8424487e258e2c5fa5c22ba72a9087b5226c2 (patch)
treea217510481b284925998c4fcffc6be7e386af5fa /perl-install/standalone/autosetupprintqueues
parentf5b8ed98986104ebefeac832a37aa99867db1822 (diff)
downloaddrakx-65f8424487e258e2c5fa5c22ba72a9087b5226c2.tar
drakx-65f8424487e258e2c5fa5c22ba72a9087b5226c2.tar.gz
drakx-65f8424487e258e2c5fa5c22ba72a9087b5226c2.tar.bz2
drakx-65f8424487e258e2c5fa5c22ba72a9087b5226c2.tar.xz
drakx-65f8424487e258e2c5fa5c22ba72a9087b5226c2.zip
- Removed "localhost" from the DISPLAY veriable, it broke the
authorization to pop up the printerdrake window on the user's desktop when a new USB printer was plugged.
Diffstat (limited to 'perl-install/standalone/autosetupprintqueues')
-rwxr-xr-xperl-install/standalone/autosetupprintqueues4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/autosetupprintqueues b/perl-install/standalone/autosetupprintqueues
index 2fba78bac..660032b15 100755
--- a/perl-install/standalone/autosetupprintqueues
+++ b/perl-install/standalone/autosetupprintqueues
@@ -65,9 +65,9 @@ if ($gui ne "nogui") {
chomp $userhome;
my $errfile = "/dev/null";
if (-r "$userhome/.Xauthority") {
- system "export DISPLAY=\"localhost:0.0\"; export USER=$desktopuser; [ -r /etc/sysconfig/i18n ] >> $errfile 2>&1 && for l in `cat /etc/sysconfig/i18n`; do export \$l; done >> $errfile 2>&1; [ -r $userhome/.i18n ] >> $errfile 2>&1 && for l in `cat $userhome/.i18n`; do export \$l; done >> $errfile 2>&1; export XAUTHORITY=$userhome/.Xauthority; /usr/sbin/printerdrake --onlyautoqueue >> $errfile 2>&1;";
+ system "export DISPLAY=\":0.0\"; export USER=$desktopuser; [ -r /etc/sysconfig/i18n ] >> $errfile 2>&1 && for l in `cat /etc/sysconfig/i18n`; do export \$l; done >> $errfile 2>&1; [ -r $userhome/.i18n ] >> $errfile 2>&1 && for l in `cat $userhome/.i18n`; do export \$l; done >> $errfile 2>&1; export XAUTHORITY=$userhome/.Xauthority; /usr/sbin/printerdrake --onlyautoqueue >> $errfile 2>&1;";
} else {
- system "export DISPLAY=\"localhost:0.0\"; export USER=$desktopuser; [ -r /etc/sysconfig/i18n ] >> $errfile 2>&1 && for l in `cat /etc/sysconfig/i18n`; do export \$l; done >> $errfile 2>&1; [ -r $userhome/.i18n ] >> $errfile 2>&1 && for l in `cat $userhome/.i18n`; do export \$l; done >> $errfile 2>&1; /bin/su $desktopuser -c \"/usr/X11R6/bin/xhost +localhost >> $errfile 2>&1\"; /usr/sbin/printerdrake --onlyautoqueue >> $errfile 2>&1; /bin/su $desktopuser -c \"/usr/X11R6/bin/xhost -localhost >> $errfile 2>&1\"";
+ system "export DISPLAY=\":0.0\"; export USER=$desktopuser; [ -r /etc/sysconfig/i18n ] >> $errfile 2>&1 && for l in `cat /etc/sysconfig/i18n`; do export \$l; done >> $errfile 2>&1; [ -r $userhome/.i18n ] >> $errfile 2>&1 && for l in `cat $userhome/.i18n`; do export \$l; done >> $errfile 2>&1; /bin/su $desktopuser -c \"/usr/X11R6/bin/xhost +localhost >> $errfile 2>&1\"; /usr/sbin/printerdrake --onlyautoqueue >> $errfile 2>&1; /bin/su $desktopuser -c \"/usr/X11R6/bin/xhost -localhost >> $errfile 2>&1\"";
}
exit 0;
}