Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Created May 25, 2011 14:34
Show Gist options
  • Save kazuhisya/991086 to your computer and use it in GitHub Desktop.
Save kazuhisya/991086 to your computer and use it in GitHub Desktop.
Beluga launcher
#!/usr/bin/python
#-*- coding:utf-8 -*-
import pygtk
import gtk
import os
def tray_activate(event):
os.system("/opt/google/chrome/google-chrome --app=http://belugapods.com/site/mobile")
tray = gtk.StatusIcon()
tray.set_title("Beluga")
tray.set_from_file("~/Pictures/Beluga.png")
tray.connect('activate', tray_activate)
gtk.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment