És a kód:
import os import subprocess import signal from gi.repository import Gtk as gtk from gi.repository import AppIndicator3 as appindicator APPINDICATOR_ID = 'Corvina' def main(): indicator = appindicator.Indicator.new(APPINDICATOR_ID, os.path.normpath('/usr/share/icons/corvina/corvina_icon.svg'), appindicator.IndicatorCategory.SYSTEM_SERVICES) indicator.set_status(appindicator.IndicatorStatus.ACTIVE) indicator.set_menu(build_menu()) gtk.main() def build_menu(): menu = gtk.Menu() item_cat = gtk.MenuItem('Catalog') item_cat.connect('activate', cat); menu.append(item_cat) item_pac = gtk.MenuItem('Opac') item_pac.connect('activate', pac); menu.append(item_pac) item_quit = gtk.MenuItem('Quit') item_quit.connect('activate', quit) menu.append(item_quit) menu.show_all() return menu def quit(source): gtk.main_quit() def cat(source): subprocess.call(["javaws","Catalog.jnlp",""]) def pac(source): subprocess.call(["javaws","Opac.jnlp",""]) if __name__ == "__main__": signal.signal(signal.SIGINT, signal.SIG_DFL) main()