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

index cf8ad6f..46ee609 100644 (file)
@@ -40,7 +40,7 @@ class desktop {
 
        exec { 'fix-desktop-leafpad':
                command => 'sed -i "/^Name/ s/=.*/=Notes/;" /etc/skel/Desktop/leafpad.desktop',
-               onlyif => 'egrep -vq "Name.*=Notes"',
+               onlyif => '/bin/grep -vq "^Name.*=Notes" /etc/skel/Desktop/leafpad.desktop',
        }
 
        file { '/etc/skel/Desktop/galculator.desktop':
@@ -52,6 +52,11 @@ class desktop {
                ],
        }
 
+       exec { 'fix-desktop-galculator':
+               command => 'sed -i "/^Name/ s/=.*/=Calculator/;" /etc/skel/Desktop/galculator.desktop',
+               onlyif => '/bin/grep -vq "^Name.*=Calculator" /etc/skel/Desktop/galculator.desktop',
+       }
+
        file { '/etc/skel/Desktop/chromium-l10n.desktop':
                source => '/usr/share/applications/chromium.desktop',
                require => [