No printer if using shortcut script on Mac WiKi

Questions about Wine on macOS.
Locked
pauliu
Newbie
Newbie
Posts: 1
Joined: Thu Jul 26, 2018 5:54 am

No printer if using shortcut script on Mac WiKi

Post by pauliu »

I have installed latest wine devel version, runs my win programs without problem and print is also ok, if I use the shortcut script which can be found on Mac wiki, program can be started properly but no printer found when print. The script I use as follow

on run

--edit this to be the correct location and file to run (typically only edit after the "drive_c")
set toRun to "$WINEPREFIX/drive_c/Program Files/MyProgram/MyProgramName.exe"

--edit winePrefix if you are not using the default prefix
set winePrefix to "$HOME/.wine"

--edit wineLocation if your wine install is not the default location
set wineLocation to "/usr/local/bin"

--edit dyldFallbackLibraryPath to your X11 lib folder, this one is set for XQuartz on 10.6+
set dyldFallbackLibraryPath to "/opt/X11/lib"
-------------------------------------------------------
--DO NOT EDIT ANYTHING BELOW THIS LINE
-------------------------------------------------------
set toRunPath to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; echo \"${TEMPVAR%/*}\""
set toRunFile to do shell script "WINEPREFIX=\"" & winePrefix & "\"; TEMPVAR=\"" & toRun & "\"; TEMPVAR2=\"" & toRunPath & "\"; echo \"${TEMPVAR#$TEMPVAR2/}\""
do shell script "PATH=\"" & wineLocation & ":$PATH\"; export WINEPREFIX=\"" & winePrefix & "\"; export DYLD_FALLBACK_LIBRARY_PATH=\"" & dyldFallbackLibraryPath & "\"; cd \"" & toRunPath & "\"; wine \"" & toRunFile & "\" > /dev/null 2>&1 &"

end run
Locked