snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 19c27c565ce805726b898ccab627b4655b74eb8f
parent 50466fc14969a088162486e3412b91f5a892be7f
Author: Josh Moore <jxm5210@g.rit.edu>
Date:   Thu, 11 Jun 2020 03:29:22 -0400

Merge pull request #106 from karx1/master

Fix reboot/shutdown
Diffstat:
Asnakewm/apps/system/reboot/__init__.py | 7+++++++
Asnakewm/apps/system/shutdown/__init__.py | 7+++++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/snakewm/apps/system/reboot/__init__.py b/snakewm/apps/system/reboot/__init__.py @@ -0,0 +1,7 @@ +import os +import pygame + + +def load(manager, params): + pygame.quit() + os.system("/sbin/reboot -f") diff --git a/snakewm/apps/system/shutdown/__init__.py b/snakewm/apps/system/shutdown/__init__.py @@ -0,0 +1,7 @@ +import os +import pygame + + +def load(manager, params): + pygame.quit() + os.system("/sbin/poweroff -f")