Skip to content

Commit

Permalink
Add CCS desktops apps to default gnome favorites
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmorris committed Aug 31, 2024
1 parent 82caca0 commit 87f4b15
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions manifests/desktop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
},
}
}

0 comments on commit 87f4b15

Please sign in to comment.