[gnome-build-meta/alatiera/default-console-shell: 3/4] vm: override the default shell gnome-console will use




commit 88338aaa123281360d19fa806d3751ee20d55045
Author: Jordan Petridis <jordan centricular com>
Date:   Sat Mar 19 11:18:17 2022 +0200

    vm: override the default shell gnome-console will use
    
    While we can't change the default shell in general since fish
    isn't compatible with bash/sh, we can override the schema key
    for gnome-console.
    
    Close #332

 elements/vm/common-deps.bst                          | 1 +
 elements/vm/console-shell-override.bst               | 8 ++++++++
 files/gnome-console/99-fish-override.schema.override | 2 ++
 3 files changed, 11 insertions(+)
---
diff --git a/elements/vm/common-deps.bst b/elements/vm/common-deps.bst
index 6bc389368..93c968dac 100644
--- a/elements/vm/common-deps.bst
+++ b/elements/vm/common-deps.bst
@@ -11,6 +11,7 @@ depends:
 - vm/flathub-config.bst
 - vm/gnome-nightly-config.bst
 - vm/ostree-config.bst
+- vm/console-shell-override.bst
 - vm/plymouth-gnome-theme.bst
 - vm/resize-root.bst
 - vm/spice-vdagent.bst
diff --git a/elements/vm/console-shell-override.bst b/elements/vm/console-shell-override.bst
new file mode 100644
index 000000000..9726856d4
--- /dev/null
+++ b/elements/vm/console-shell-override.bst
@@ -0,0 +1,8 @@
+kind: import
+
+sources:
+- kind: local
+  path: files/gnome-console/99-fish-override.schema.override
+
+config:
+  target: '%{datadir}/glib-2.0/schemas/'
diff --git a/files/gnome-console/99-fish-override.schema.override 
b/files/gnome-console/99-fish-override.schema.override
new file mode 100644
index 000000000..e8490f391
--- /dev/null
+++ b/files/gnome-console/99-fish-override.schema.override
@@ -0,0 +1,2 @@
+[org.gnome.Console]
+shell=['fish']


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]