Commits

Smith Dhumbumroong committed a285699

Fix bug where PyShutdownBox doesn't read a newly created config file.

  • Participants
  • Parent commits c731a6b
  • Tags 0.8

Comments (0)

Files changed (1)

File PyShutdownBox.py

             with open(config_file, 'wb') as configfile:
                 config.write(configfile)
 
+            # don't forget to read the config file after created it!
+            config.read(config_file)
+
+            self.rc_shutdown = config.get(command_run, 'command')
+            self.logout_cmd = config.get(logout_command, 'logout_command')
+            self.restart_cmd = config.get(restart_command, 'restart_command')
+            self.shutdown_cmd = config.get(shutdown_command, 'shutdown_command')
+
         # create and connect to our UI
         builder = gtk.Builder()
         builder.add_from_file("PyShutdownBox.glade")