From 979c573768b97e13759840de849c96b276e57bfb Mon Sep 17 00:00:00 2001 From: shenmo Date: Thu, 7 Nov 2024 05:46:22 +0000 Subject: [PATCH] Fix: Change %u to %F to avoid low wine version can't resolve file:// protocol Signed-off-by: shenmo --- deepin-wine-easy-packager.py | 2 +- deepin-wine-packager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deepin-wine-easy-packager.py b/deepin-wine-easy-packager.py index e06b54f..da97d6e 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -321,7 +321,7 @@ Encoding=UTF-8 Type=Application X-Created-By=@@@Maintainer@@@ Icon=@@@Icon@@@ -Exec="/opt/apps/@@@Package@@@/files/run.sh --uri %u" +Exec="/opt/apps/@@@Package@@@/files/run.sh --uri %F" Name=@@@Name@@@ Comment=@@@Description@@@ MimeType= diff --git a/deepin-wine-packager.py b/deepin-wine-packager.py index f8198d2..5ab27d6 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -636,7 +636,7 @@ Description: {e3_text.text()} ["@@@MAINTAINER@@@", e4_text.text()], ["@@@DESCRIPTION@@@", e3_text.text()], ["@@@DESKTOP_EXEC@@@", - f'''"/opt/apps/{e1_text.text()}/files/run.sh" {command} %u'''], + f'''"/opt/apps/{e1_text.text()}/files/run.sh" {command} %F'''], ["@@@DESKTOP_NAME@@@", iconUiList[0][3].text()], ["@@@DESKTOP_MIMETYPE@@@", iconUiList[0][5].text()], ["@@@DESKTOP_CATEGORIES@@@", iconUiList[0][1].currentText()]