aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2016-05-16 15:51:55 +0800
committerse <se@FreeBSD.org>2016-05-16 15:51:55 +0800
commit3359c0f059111348d5946e6794b73b21e8b65a3f (patch)
tree3fa1ac670645e6d5b48aebf3a14f01356f598e41 /emulators
parent92ab3f90d5449e28d7002143aaf6bf92b2ec8d41 (diff)
downloadfreebsd-ports-gnome-3359c0f059111348d5946e6794b73b21e8b65a3f.tar.gz
freebsd-ports-gnome-3359c0f059111348d5946e6794b73b21e8b65a3f.tar.zst
freebsd-ports-gnome-3359c0f059111348d5946e6794b73b21e8b65a3f.zip
Really fix the generation of shortcut files.
Approved by: antoine (mentor, implicit)
Diffstat (limited to 'emulators')
-rw-r--r--emulators/playonbsd/files/patch-lib_scripts.lib13
1 files changed, 11 insertions, 2 deletions
diff --git a/emulators/playonbsd/files/patch-lib_scripts.lib b/emulators/playonbsd/files/patch-lib_scripts.lib
index a4bba860cc2d..a7e09e5458f1 100644
--- a/emulators/playonbsd/files/patch-lib_scripts.lib
+++ b/emulators/playonbsd/files/patch-lib_scripts.lib
@@ -5,13 +5,13 @@
if [ ! "$(POL_Config_Read NO_MENU_ICON)" = "TRUE" ]; then
# Do nothing on Mac OS
- if [ -n "$Categories" -a "$POL_OS" = "Linux" ] || [ -n "$Categories" -a "$POL_OS" = "BSD" ]; then
-+ if [ -n "$Categories" -a "$POL_OS" = "Linux" ]
++ if [ -n "$Categories" -a "$POL_OS" = "Linux" ]; then
LOCALAPPS="$HOME/.local/share/applications"
make_desktop_shortcut "$iconPath" "$ICON_FILENAME" "$LOCALAPPS" "$PLAYONLINUX/playonlinux --run \"$ICON_FILENAME\"" "$binary_name" "$Categories" "playonlinux-"
fi
+ if [ -n "$Categories" -a "$POL_OS" = "FreeBSD" ]; then
+ LOCALAPPS="$HOME/.local/share/applications"
-+ make_desktop_shortcut "$iconPath" "$ICON_FILENAME" "$LOCALAPPS" "$PLAYONLINUX/playonbsd --run \"$ICON_FILENAME\"" "$binary_name" "$Categories" "playonlinux-"
++ make_desktop_shortcut "$iconPath" "$ICON_FILENAME" "$LOCALAPPS" "$PLAYONLINUX/playonfreebsd --run \"$ICON_FILENAME\"" "$binary_name" "$Categories" "playonlinux-"
+ fi
fi
@@ -44,3 +44,12 @@
}
POL_Shortcut_MakeDesktopShortcut()
{
+@@ -1039,7 +1049,7 @@ POL_Shortcut_MakeDesktopShortcut()
+ # http://stackoverflow.com/questions/8939580/bash-split-a-string-exactly-like-readline-would-split-it
+ eval set -- $(grep '^POL_Wine ' "$POL_USER_ROOT/shortcuts/$PACKAGE"|tail -n 1)
+ local binary="$2"
+- make_desktop_shortcut "$iconPath" "$PACKAGE" "$DESKTOP" "$PLAYONLINUX/playonlinux --run \"$PACKAGE\"" "$binary" ""
++ make_desktop_shortcut "$iconPath" "$PACKAGE" "$DESKTOP" "$PLAYONLINUX/playonfreebsd --run \"$PACKAGE\"" "$binary" ""
+ ;;
+
+ *)