from lutris.util import display, system oss_list = [ ("None (don't use OSS)", "none"), ("padsp (PulseAudio OSS Wrapper)", "padsp"), ("padsp32 (PulseAudio OSS Wrapper for 32bit apps)", "padsp32"), ("pasuspender", "pasuspender"), ("aoss (OSS Wrapper for Alsa)", "aoss"), ] resolutions = display.get_resolutions() resolution_choices = zip(resolutions, resolutions) resolution_choices.insert(0, ("Keep current", 'off')) outputs = display.get_output_names() output_choices = zip(outputs, outputs) output_choices.insert(0, ("Off", 'off')) system_options = [ { 'option': 'game_path', 'type': 'directory_chooser', 'label': 'Main game folder', 'default': os.path.expanduser('~/Games'), 'scope': ['runner', 'system'], 'help': ("The main folder where you install your games.\n" "Lutris uses it to propose you a default path when you \n" "install a new game.") }, { 'option': 'reset_desktop',
def get_displays(): global DISPLAYS if not DISPLAYS: DISPLAYS = display.get_output_names() return DISPLAYS
from lutris.util import display oss_list = [ ("None (don't use OSS)", "none"), ("padsp (PulseAudio OSS Wrapper)", "padsp"), ("padsp32 (PulseAudio OSS Wrapper for 32bit apps)", "padsp32"), ("pasuspender", "pasuspender"), ("aoss (OSS Wrapper for Alsa)", "aoss"), ] resolutions = display.get_resolutions() resolution_choices = zip(resolutions, resolutions) resolution_choices.insert(0, ("No change", None)) outputs = display.get_output_names() output_choices = zip(outputs, outputs) output_choices.insert(0, ("No change", None)) system_options = [{ 'option': 'game_path', 'type': 'directory_chooser', 'label': 'Library default folder', 'help': ("The main folder where you install your games.\n" "Lutris uses it to propose you a default path when you \n" "install a new game.") }, { 'option': 'disable_runtime', 'type':
def get_output_choices(): outputs = display.get_output_names() output_choices = zip(outputs, outputs) output_choices.insert(0, ("Off", 'off')) return output_choices