After upgrading to osol 121 (possibly upto 123), you may see a process,
desktop-print-management-applet looping and causes your laptop fan to
turn and your laptop to heat up, constant flicking at the notification
area. You are hitting http://defect.opensolaris.org/bz/show_bug.cgi?id=10863
Please replace your /usr/bin/desktop-print-management-applet with that
attached.
Plan to fix this for osol 124.
-Ghee
#!/usr/perl5/bin/perl
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
use Errno qw(EINTR :POSIX);
my $SVC_CUPS_SCHEDULER = 'cups/scheduler';
my $SVCPROP = '/usr/bin/svcprop';
my $reexec = 0;
sub svcprop {
local ($fmri, $property) = @_;
my $FH;
open($FH, "$SVCPROP -C -p $property $fmri 2>/dev/null |");
$result = <$FH>;
close($FH);
return ($result);
}
sub print_service {
my $service;
$service = svcprop("$SVC_CUPS_SCHEDULER:default", "general/active");
($service =~ /true/) && ($service = 'cups') || ($service = 'lp');
return ($service);
}
sub kill_running_applets {
# cups applet daemon
system("pkill -f '/system-config-printer/applet.py'");
# lp applet daemon
system("pkill ospm-applet");
$reexec = 1;
}
sub handle_signal {
kill_running_applets ();
}
$SIG{USR1} = \&handle_signal;
my $pid;
my $service;
$pid = fork();
if ($pid) {
my $retid;
while ((($retid = waitpid($pid, 0)) < 0) && $!{EINTR}) {
}
if ($retid == $pid && $reexec) {
exec('/usr/bin/desktop-print-management-applet');
}
}
else {
$service = print_service();
if ($service eq 'lp') {
exec('/usr/lib/lp/bin/desktop-print-management-applet');
}
else {
exec('/usr/lib/cups/bin/desktop-print-management-applet');
}
}
exit(0);
_______________________________________________
opensolaris-discuss mailing list
[email protected]