Hi, I am having issues. I've recently installed 13.10. I do not see any notifications pop up for connect/disconnect from wifi or vpn. I would like to have notifications for vpn connections (using openvpn in this case). I found this hack here for a python script which is helpful. the python notify script loads & functions fine when i execute it from konsole. After adding the python script to "startup and shutdown" under "system settings" and restart my desktop I get issues (similar to this one)! First, as the desktop boots up it seems a unusual blank notification appears for a split second. Next, kate editor loads automatically, stalls, and finally crashes. Everything is very very sluggish and nothing seems to want to open. I dropped into terminal and renamed the python script it was pointing to, restart once again, and the desktop starts just like normal. I was placing the python script using "add script" under the startup & shutdown settings. Could I be going about this differently? Thank you for any help.
Announcement
Collapse
No announcement yet.
vpn notifications, desktop crashing
Collapse
This topic is closed.
X
X
-
Originally posted by claydoh View PostThe script might be problematic because it is using gtk calls, probably because it is looking for gnome/unity notification systems.
sent from my phone, as if anyone cares lol
- Top
- Bottom
Comment
-
Here's the script I was using...
import gtk
import pynotify
import dbus
from dbus.mainloop.glib import DBusGMainLoop
def vpn_connection_handler(*args, **keywords):
state = args[0].get('State',0)
if state == 2:
n = pynotify.Notification ("VPN", "Connection established")
n.show()
elif state == 4:
n = pynotify.Notification ("VPN", "Connection lost")
n.show()
pynotify.init ("icon-summary-body")
dbus_loop = DBusGMainLoop()
system_bus = dbus.SystemBus(mainloop=dbus_loop)
system_bus.add_signal_receiver(vpn_connection_hand ler,
dbus_interface="org.freedesktop.NetworkManager.VPN .Connection",
signal_name="PropertiesChanged")
gtk.gdk.threads_init()
gtk.main()
Would anyone know how I could turn this into something more kubuntu friendly?
- Top
- Bottom
Comment
Comment