desktop-print-management-applet revision 6124874e2cec65f2e7a974b3833b05dbf2a7d905
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# CDDL HEADER START
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# The contents of this file are subject to the terms of the
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Common Development and Distribution License (the "License").
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# You may not use this file except in compliance with the License.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# See the License for the specific language governing permissions
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# and limitations under the License.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# When distributing Covered Code, include this CDDL HEADER in each
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# If applicable, add the following below this CDDL HEADER, with the
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# CDDL HEADER END
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync# Use is subject to license terms.
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync open($FH, "$SVCPROP -C -p $property $fmri 2>/dev/null |");
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync $service = svcprop("$SVC_CUPS_SCHEDULER:default", "general/active");
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync ($service =~ /true/) && ($service = 'cups') || ($service = 'lp');
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync system("pkill -f '/system-config-printer/applet.py'");
41a839133aad7c96a0d55d927dc3475d0cbe9c22vboxsync exec('/usr/lib/lp/bin/desktop-print-management-applet');