It directs people to System->Administration->Printing instead of giving the "no handler" message.
Thanks, ~Jason
Index: plugins/printer.py.in =================================================================== --- plugins/printer.py.in (revision 0) +++ plugins/printer.py.in (revision 0) @@ -0,0 +1,29 @@ +# -*- coding: UTF-8 -*- +# -*- python -*- +# Copyright (C) 2007 by Jason Whitlark +# +# This file may be distributed and/or modified under the terms of +# the GNU General Public License version 2 as published by +# the Free Software Foundation. +# This file is distributed without any warranty; without even the implied +# warranty of merchantability or fitness for a particular purpose. +# See "COPYING" in the source distribution for more information. +# +# $Id$ +# + +from sdapplet.pluginutils import * + +class plugin_printer: + def __init__(self): + self.service_type = ["_ipp._tcp", "_pdl-datastream._tcp", "_printer._tcp"] + self.author = "Jason Whitlark" + self.description = "Direct user to printer configuration applet" + + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + msg = """Detected printers can be configured via the System->Administration->Printing menu""" + # This would probably make more sense as an info msg... + error_msg(msg) + +def load(): + return plugin_printer() Index: plugins/Makefile.am =================================================================== --- plugins/Makefile.am (revision 139) +++ plugins/Makefile.am (working copy) @@ -5,14 +5,16 @@ nautilus.py.in \ xvncviewer.py.in \ obby.py.in \ - ekiga.py.in + ekiga.py.in \ + printer.py.in plugins_DATA = \ gconfterminal.py \ nautilus.py \ xvncviewer.py \ obby.py \ - ekiga.py + ekiga.py \ + printer.py gconfterminal.py: gconfterminal.py.in sed \ @@ -39,6 +41,11 @@ -e 's,@toolsdir\@,$(TOOLSDIR),g' \ $< > $@ +printer.py: printer.py.in + sed \ + -e 's,@toolsdir\@,$(TOOLSDIR),g' \ + $< > $@ + EXTRA_DIST = $(plugins) CLEANFILES = $(plugins_DATA)
_______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
