diff options
| author | Dennis Camera <cdist@dtnr.ch> | 2021-03-20 20:32:11 +0100 |
|---|---|---|
| committer | Dennis Camera <cdist@dtnr.ch> | 2021-03-20 21:23:13 +0100 |
| commit | 720f562623daa23e6885ae77b42a58daf8d55c3d (patch) | |
| tree | 779becba437dd163c1e28b6e705c9352b4f849b4 /type | |
| parent | beace0166e5eb362fd39f76e2ef59dcc2cfffeab (diff) | |
| download | __dtnrch_egov-720f562623daa23e6885ae77b42a58daf8d55c3d.tar.gz __dtnrch_egov-720f562623daa23e6885ae77b42a58daf8d55c3d.zip | |
[type/__dtnrch_etax_sgnp] Set Office category in .desktop file
Diffstat (limited to 'type')
| -rwxr-xr-x | type/__dtnrch_etax_sgnp/gencode-remote | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/type/__dtnrch_etax_sgnp/gencode-remote b/type/__dtnrch_etax_sgnp/gencode-remote index d2d1ff0..a4898b1 100755 --- a/type/__dtnrch_etax_sgnp/gencode-remote +++ b/type/__dtnrch_etax_sgnp/gencode-remote @@ -50,7 +50,7 @@ fi if grep -q "^__dtnrch_install4j${install_dir:?}:installed" "${__messages_in:?}" then - # Patch MimeType in desktop file after installation + # Post-install routine : "${__type:?}" @@ -84,9 +84,13 @@ then exit 1 fi + # Set MimeType sed -i -n '/^MimeType=/!p' "\${main_desktop_file}" printf 'MimeType=%s\n' 'application/x-sgnp${version}' >>"\${main_desktop_file}" + # Ensure Office category is set + sed -i -e '/^Categories=/{/Office;/!s/$/Office;/}' "\${main_desktop_file}" + # Update alt file if they're not symlinked (i.e. they differ) if test -e "\${alt_desktop_file}" then |
