Skip to content

Commit

Permalink
Merge pull request #69 from lsst-it/IT-5620/favorite-apps
Browse files Browse the repository at this point in the history
Add CCS desktops apps to default gnome favorites
  • Loading branch information
glennmorris authored Sep 4, 2024
2 parents 82caca0 + f0fe375 commit 81462dd
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ fixtures:
vcsrepo: "puppetlabs/vcsrepo"
systemd: "puppet/systemd"
sudo: "saz/sudo"
concat: "puppetlabs/concat"
inifile: "puppetlabs/inifile"
simplib: "simp/simplib"
dconf: "simp/dconf"
27 changes: 27 additions & 0 deletions manifests/desktop.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,31 @@
}
}
}

class { 'dconf':
tidy => false,
}

## 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 },
},
},
}
}
4 changes: 4 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
{
"name": "saz/sudo",
"version_requirement": ">= 6.0.0 < 9.0.0"
},
{
"name": "simp/dconf",
"version_requirement": ">= 0.5.0 < 1.0.0"
}
],
"operatingsystem_support": [
Expand Down
1 change: 1 addition & 0 deletions spec/support/acceptance/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
scp_to(host, "#{__dir__}/../../fixtures/facts/site.yaml", '/opt/puppetlabs/facter/facts.d/site.yaml')
install_puppet_module_via_pmt_on(host, 'puppet/alternatives', '5')
install_puppet_module_via_pmt_on(host, 'puppetlabs/java', '10')
install_puppet_module_via_pmt_on(host, 'puppetlabs/concat', '9')
end

0 comments on commit 81462dd

Please sign in to comment.