Re: kupfer questions



Hi,

Dnia Thu, 3 Dec 2009 19:59:47 -0600 Hugo Shi napisał/a:
>  and also, the logout feature of xfce doesn't seem to work, and
> suspend/hibernate options don't show up in kupfer, is there a way to
> add them?  do i need to write a script and put it in Applications?

I have prepared patch for this - please check attached patch (or
http://github.com/KarolBedkowski/kupfer-adds/commit/ac5a094d63e3ce3aaf4d83f1e0756242ac8c8286)


Karol

diff --git a/kupfer/plugin/common.py b/kupfer/plugin/common.py
index e5cd51f..b2b485b 100644
--- a/kupfer/plugin/common.py
+++ b/kupfer/plugin/common.py
@@ -30,7 +30,8 @@ class Logout (RunnableLeaf):
 		super(Logout, self).__init__(name=name)
 	def run(self):
 		launch_commandline_with_fallbacks(("gnome-panel-logout",
-			"gnome-session-save --kill"))
+			"gnome-session-save --kill", 
+			"xfce4-session-logout --logout"))
 	def get_description(self):
 		return _("Log out or change user")
 	def get_icon_name(self):
@@ -43,7 +44,8 @@ class Shutdown (RunnableLeaf):
 		super(Shutdown, self).__init__(name=name)
 	def run(self):
 		launch_commandline_with_fallbacks(("gnome-panel-logout --shutdown",
-			"gnome-session-save --shutdown-dialog"))
+			"gnome-session-save --shutdown-dialog", 
+			"xfce4-session-logout --shutdown"))
 
 	def get_description(self):
 		return _("Shut down, restart or suspend computer")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]