Separate user and system data dirs for Flatpak

This commit is contained in:
kramo
2023-12-12 10:18:13 +01:00
parent 9bce2190f7
commit f7a3e01cee
5 changed files with 48 additions and 16 deletions

View File

@@ -322,10 +322,22 @@ template $PreferencesWindow : Adw.PreferencesWindow {
icon-name: "flatpak-source-symbolic";
}
Adw.ActionRow flatpak_data_action_row {
title: _("Install Location");
Adw.ActionRow flatpak_system_data_action_row {
title: _("System Location");
Button flatpak_data_file_chooser_button {
Button flatpak_system_data_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [
"flat"
]
}
}
Adw.ActionRow flatpak_user_data_action_row {
title: _("User Location");
Button flatpak_user_data_file_chooser_button {
icon-name: "folder-symbolic";
valign: center;
styles [

View File

@@ -83,9 +83,12 @@
<key name="flatpak" type="b">
<default>true</default>
</key>
<key name="flatpak-location" type="s">
<key name="flatpak-system-location" type="s">
<default>"/var/lib/flatpak/"</default>
</key>
<key name="flatpak-user-location" type="s">
<default>"~/.local/share/flatpak/"</default>
</key>
<key name="flatpak-import-launchers" type="b">
<default>false</default>
</key>