def cb_button_settings(self, button):
output = self.combobox_monitor.get_active_text().split()[0]
os.system('xrandr --output '+ output + ' --primary')
self.main_window.hide()
while Gtk.events_pending():
Gtk.main_iteration()
dosbox_bin = self.set_dosbox_bin()
self.create_link()
launch_command = dosbox_bin + ' -conf ' + \
os.getenv('HOME') + '/.games_nebula/config/dosbox.conf' + \
' -conf ' + self.install_dir + '/' + self.game_name + '/dosbox.conf' + \
' -conf ' + self.install_dir + '/' + self.game_name + '/dosbox_settings.conf'
os.system('export SDL_VIDEO_FULLSCREEN_HEAD=0 && ' + launch_command)
output = self.monitor_primary.split()[0]
os.system('xrandr --output '+ output + ' --primary')
self.main_window.show()
评论列表
文章目录