Basic support for Desktop Entry source
This commit is contained in:
@@ -275,7 +275,7 @@ template $PreferencesWindow : Adw.PreferencesWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Adw.ActionRow flatpak_import_launchers_row {
|
||||
Adw.ActionRow flatpak_import_launchers_row {
|
||||
title: _("Import Game Launchers");
|
||||
activatable-widget: flatpak_import_launchers_switch;
|
||||
|
||||
@@ -284,6 +284,35 @@ template $PreferencesWindow : Adw.PreferencesWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Adw.ExpanderRow desktop_expander_row {
|
||||
title: _("Desktop Files");
|
||||
show-enable-switch: true;
|
||||
|
||||
Adw.ComboRow desktop_terminal_exec_row {
|
||||
title: _("Terminal");
|
||||
subtitle: _("Used only by games that require one to run");
|
||||
model: StringList {
|
||||
strings [
|
||||
_("Custom"),
|
||||
"xdg-terminal-exec",
|
||||
"GNOME Console",
|
||||
"GNOME Terminal",
|
||||
"Konsole",
|
||||
"xterm"
|
||||
]
|
||||
};
|
||||
[suffix]
|
||||
Revealer desktop_tereminal_custom_exec_revealer {
|
||||
transition-type: slide_left;
|
||||
|
||||
Entry desktop_tereminal_custom_exec {
|
||||
valign: center;
|
||||
placeholder-text: _("Executable");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="cartridges">
|
||||
|
||||
<enum id="@APP_ID@.terminals">
|
||||
<value nick="custom" value="0"/>
|
||||
<value nick="xdg-terminal-exec" value="1"/>
|
||||
<value nick="kgx" value="2"/>
|
||||
<value nick="gnome-terminal" value="3"/>
|
||||
<value nick="konsole" value="4"/>
|
||||
<value nick="xterm" value="5"/>
|
||||
</enum>
|
||||
|
||||
<schema id="@APP_ID@" path="@PREFIX@/">
|
||||
<key name="exit-after-launch" type="b">
|
||||
<default>false</default>
|
||||
@@ -76,6 +86,15 @@
|
||||
<key name="retroarch-location" type="s">
|
||||
<default>"~/.var/app/org.libretro.RetroArch/config/retroarch/"</default>
|
||||
</key>
|
||||
<key name="desktop" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
<key name='desktop-terminal' enum='@APP_ID@.terminals'>
|
||||
<default>"xdg-terminal-exec"</default>
|
||||
</key>
|
||||
<key name="desktop-terminal-custom-exec" type="s">
|
||||
<default>""</default>
|
||||
</key>
|
||||
<key name="flatpak" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
@@ -98,6 +117,7 @@
|
||||
<default>false</default>
|
||||
</key>
|
||||
</schema>
|
||||
|
||||
<schema id="@APP_ID@.State" path="@PREFIX@/State/">
|
||||
<key name="width" type="i">
|
||||
<default>1110</default>
|
||||
|
||||
Reference in New Issue
Block a user