Basic support for Desktop Entry source

This commit is contained in:
kramo
2023-08-21 14:09:41 +02:00
parent bc3bc2dac6
commit 2d791e46b0
9 changed files with 260 additions and 5 deletions

View File

@@ -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");
}
}
}
}
}
}