From 87f4b153601a5e401b7d30ee6ff0f9e208ab47e3 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 30 Aug 2024 17:41:50 -0700 Subject: [PATCH] Add CCS desktops apps to default gnome favorites --- manifests/desktop.pp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/manifests/desktop.pp b/manifests/desktop.pp index 4d7760d..c405d7c 100644 --- a/manifests/desktop.pp +++ b/manifests/desktop.pp @@ -60,4 +60,29 @@ } } } + + include 'dconf' + + ## The dconf module is silent on how one defines a list value, + ## but by experiment it seems a literal string is needed. + $faves = [ + 'lsst.ccs.console.prod.desktop', + 'lsst.ccs.shell.prod.desktop', + 'firefox.desktop', + 'org.gnome.Nautilus.desktop', + 'yelp.desktop', + 'org.gnome.Terminal.desktop', + ] + + ## Would be nice if the dconf module did this internally, but no. + $value = String($faves, '%[a') + + dconf::settings { '00-favorite-apps': + profile => 'local', + settings_hash => { + 'org/gnome/shell' => { + 'favorite-apps' => { 'value' => $value, 'lock' => false }, + }, + }, + } }