Changeset 5447
- Timestamp:
- Jul 4, 2017, 1:12:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner-common.install/usr/sbin/shutdown-lliurex-dialog
r5444 r5447 21 21 22 22 self.msg=_("System will shutdown in %s seconds. Please, save your files.") 23 24 23 self.countdown=wait_time*60 25 24 self.current_counter=0 26 27 25 self.start_gui() 28 29 26 30 27 #def init … … 34 31 builder=Gtk.Builder() 35 32 builder.set_translation_domain('lliurex-shutdowner') 36 builder.add_from_file("/usr/share/lliurex-shutdowner/rsrc s/shutdowner-lliurex-dialog.ui")33 builder.add_from_file("/usr/share/lliurex-shutdowner/rsrc/shutdowner-lliurex-dialog.ui") 37 34 self.main_window=builder.get_object("shutdown_window") 38 35 … … 76 73 77 74 command="shutdown -c" 78 print(command) 79 #os.system(command) 75 os.system(command) 80 76 Gtk.main_quit() 81 77 … … 85 81 86 82 command="shutdown -h now" 87 print(command) 88 #os.system(command) 83 os.system(command) 89 84 Gtk.main_quit() 90 85
Note: See TracChangeset
for help on using the changeset viewer.