From b64170d20b7f11cf996cd387221d5c2abfac1b04 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Thu, 24 Sep 2020 13:34:23 +0200 Subject: [PATCH] Paramteres for comment and generic name --- manifests/init.pp | 3 +++ templates/program.desktop.erb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 2145c1f..e74f15b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -26,6 +26,9 @@ define wmdeit_install::program( $exec = "$extract_path/$extract_dir/$program", $exec_path = "$extract_path/$extract_dir", + $generic_name = "$program", + $comment = "$program", + ){ file {$extract_path: diff --git a/templates/program.desktop.erb b/templates/program.desktop.erb index 762abb8..a839380 100644 --- a/templates/program.desktop.erb +++ b/templates/program.desktop.erb @@ -2,8 +2,8 @@ Type=Application Version=1.0 Name=<%= @program %> -GenericName=Upload-Werkzeug -Comment=Uploader für Wikimedia Commons +GenericName=<%= @generic_name %> +Comment=<%= @comment %> Path=<%= @exec_path %> Exec=<%= @exec %> Icon=<%= @extract_path %>/<%= @svg %>