From 85ed62172a6db499d9bd90b4cc05328794b4119d Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Fri, 3 May 2024 20:24:29 +0200 Subject: [PATCH] Use desktop file shipped upstream --- debian/changelog | 2 ++ debian/patches/desktop-exec-f.patch | 12 ++++++++++++ debian/patches/series | 1 + debian/vym.desktop | 19 ------------------- debian/vym.mime | 2 +- debian/vym.postinst | 10 ---------- debian/x-vym.desktop | 7 ------- 7 files changed, 16 insertions(+), 37 deletions(-) create mode 100644 debian/patches/desktop-exec-f.patch delete mode 100644 debian/vym.desktop delete mode 100644 debian/vym.postinst delete mode 100644 debian/x-vym.desktop diff --git a/debian/changelog b/debian/changelog index d548d5a..723f896 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ vym (2.9.22-1) UNRELEASED; urgency=medium * Add Rules-Requires-Root set to no. * Add Vcs information to debian/control. * Raise Standards-Version to 4.7.0. + * Delete old desktop file shiped in debian/. + * Add patch desktop-exec-f.patch to pass %f in the Exec setting. -- Sven Hoexter Fri, 03 May 2024 13:58:54 +0200 diff --git a/debian/patches/desktop-exec-f.patch b/debian/patches/desktop-exec-f.patch new file mode 100644 index 0000000..bbdd129 --- /dev/null +++ b/debian/patches/desktop-exec-f.patch @@ -0,0 +1,12 @@ +Index: vym/config/vym.desktop +=================================================================== +--- vym.orig/config/vym.desktop ++++ vym/config/vym.desktop +@@ -1,6 +1,6 @@ + [Desktop Entry] + Type=Application +-Exec=vym ++Exec=vym %f + Name=VYM - View Your Mind + Name[de]=VYM - View Your Mind + Name[zh_TW]=心智檢視 diff --git a/debian/patches/series b/debian/patches/series index 9189128..da27d98 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +desktop-exec-f.patch do-not-phone-home.patch diff --git a/debian/vym.desktop b/debian/vym.desktop deleted file mode 100644 index 70b40f8..0000000 --- a/debian/vym.desktop +++ /dev/null @@ -1,19 +0,0 @@ -[Desktop Entry] -Type=Application -Exec=vym %f -Name=VYM - View Your Mind -Comment=Create mind maps -Comment[de]=Mindmap erstellen -Comment[fr]=Créez des cartes d'associations d'idées -Comment[it]=Crea mappe mentali -Comment[ca]=Creeu mapes mentals -Comment[es]=Crear mapas mentales -GenericName=Planning Tool -GenericName[de]=Planungswerkzeug -GenericName[fr]=Outil de plannification -GenericName[it]=Strumento di pianificazione -GenericName[ca]=Eina de planificació -GenericName[es]=Herramienta de planificación -Icon=vym -MimeType=application/x-vym; -Categories=Qt;KDE;Office; diff --git a/debian/vym.mime b/debian/vym.mime index 46d8e4a..31ed036 100644 --- a/debian/vym.mime +++ b/debian/vym.mime @@ -1 +1 @@ -application/x-vym; vym %s; edit=vym %s; nametemplate=%s.vym; test=test "$DISPLAY" != ""; description="ViewYourMind Mindmap File"; priority=5 +application/x-vym; vym %s; edit=vym %s; nametemplate=%s.vym; test=test "$DISPLAY" != ""; description="View Your Mind File"; priority=5 diff --git a/debian/vym.postinst b/debian/vym.postinst deleted file mode 100644 index bc309b1..0000000 --- a/debian/vym.postinst +++ /dev/null @@ -1,10 +0,0 @@ -#! /bin/sh -set -e - -#DEBHELPER# - -if [ -x /usr/bin/update-desktop-database ]; then - update-desktop-database -fi - -exit 0 diff --git a/debian/x-vym.desktop b/debian/x-vym.desktop deleted file mode 100644 index 3959e7b..0000000 --- a/debian/x-vym.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Comment=VYM (View Your Mind) File -Type=MimeType -MimeType=application/x-vym -Icon=vym -Patterns=*.vym;*.vyp;*.VYM;*.VYP; -- 2.39.5