Provide generic names for shortcuts.
authorAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 00:12:25 +0000 (02:12 +0200)
committerAndreas Schiermeier <andreas@schiermeier.name>
Tue, 10 May 2016 00:12:25 +0000 (02:12 +0200)
modules/desktop/manifests/init.pp

index 9d8e34c..67b5d44 100644 (file)
@@ -74,6 +74,25 @@ class desktop {
                ],
        }
 
+       exec { 'fix-desktop-florence':
+               command => '/bin/sed -i "/^Name/ s/=.*/=Keyboard/;" /etc/skel/Desktop/florence.desktop',
+               onlyif => '/bin/grep -vq "^Name.*=Keyboard" /etc/skel/Desktop/florence.desktop',
+       }
+
+       file { '/etc/skel/Desktop/pcmanfm.desktop':
+               source => '/usr/share/applications/pcmanfm.desktop',
+               replace => false,
+               require => [
+                       Package['pcmanfm'],
+                       File['/etc/skel/Desktop'],
+               ],
+       }
+
+       exec { 'fix-desktop-pcmanfm':
+               command => '/bin/sed -i "/^Name/ s/=.*/=Filemanager/;" /etc/skel/Desktop/pcmanfm.desktop',
+               onlyif => '/bin/grep -vq "^Name.*=Filemanager" /etc/skel/Desktop/pcmanfm.desktop',
+       }
+
        $dms = [
                'lightdm*',
                'kdm',
@@ -126,6 +145,12 @@ class desktop {
                ],
        }
 
+       exec { 'fix-desktop-iceweasel':
+               command => '/bin/sed -i "/^Name/ s/=.*/=Webbrowser/;" /etc/skel/Desktop/iceweasel.desktop',
+               onlyif => '/bin/grep -vq "^Name.*=Webbrowser" /etc/skel/Desktop/iceweasel.desktop',
+       }
+
+
        file { '/etc/iceweasel/profile/prefs.js':
                source => 'puppet:///modules/desktop/etc/iceweasel/profile/prefs.js',
                require => [