Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2016 07:51:55 +0000 (UTC)
From:      Stefan Esser <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415312 - head/emulators/playonbsd/files
Message-ID:  <201605160751.u4G7ptJG087625@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Mon May 16 07:51:55 2016
New Revision: 415312
URL: https://svnweb.freebsd.org/changeset/ports/415312

Log:
  Really fix the generation of shortcut files.
  
  Approved by:	antoine (mentor, implicit)

Modified:
  head/emulators/playonbsd/files/patch-lib_scripts.lib

Modified: head/emulators/playonbsd/files/patch-lib_scripts.lib
==============================================================================
--- head/emulators/playonbsd/files/patch-lib_scripts.lib	Mon May 16 06:44:13 2016	(r415311)
+++ head/emulators/playonbsd/files/patch-lib_scripts.lib	Mon May 16 07:51:55 2016	(r415312)
@@ -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" ""
+ 		;;
+ 
+ 	    *)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605160751.u4G7ptJG087625>