diff options
Diffstat (limited to '')
-rw-r--r-- | portato/plugins/gpytage.py (renamed from portato/plugins/shutdown.py) | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/portato/plugins/shutdown.py b/portato/plugins/gpytage.py index 120bac8..22cc7ef 100644 --- a/portato/plugins/shutdown.py +++ b/portato/plugins/gpytage.py @@ -1,17 +1,16 @@ # -*- coding: utf-8 -*- # -# File: portato/plugins/shutdown.py +# File: portato/plugins/gpytage.py # This file is part of the Portato-Project, a graphical portage-frontend. # -# Copyright (C) 2007 René 'Necoro' Neumann +# Copyright (C) 2008 René 'Necoro' Neumann # This is free software. You may redistribute copies of it under the terms of # the GNU General Public License version 2. # There is NO WARRANTY, to the extent permitted by law. # # Written by René 'Necoro' Neumann <necoro@necoro.net> -import os +from subprocess import Popen -def shutdown (*args, **kwargs): - """Shutdown the computer. May not work if not root.""" - os.system("shutdown -h now") +def gpytage(*args, **kwargs): + Popen(["/usr/bin/gpytage"]) |