i searched the forum and looked to the Dokumentation https://help.mikrotik.com/docs/display/ ... boxonmacOS, which is pretty good and i know it is perhaps a question to the Wine Community, but:
I want to have winbox.exe in the Dock.
I tried to use an Apple-Script, but after i launch winbox, there is an additional icon called wine64-preloader https://wiki.winehq.org/MacOS_FAQ#How_t ... en_.exe.3F
Code: Select all
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/Winbox/winbox64.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"
--Setting freetype rendering to 35 fixes blurred fonts when using newer freetype versions
set freetypefix to "truetype:interpreter-version=35"
-------------------------------------------------------
--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 & "\"; export FREETYPE_PROPERTIES=\"" & freetypefix & "\"; cd \"" & toRunPath & "\"; wine64 \"" & toRunFile & "\" > /dev/null 2>&1 &"
end run
it's a bit ugly, cause everytime i launch winbox with apple script, i have additional wine64-preloaders in the dock and not a single icon.
is it possible to put the winbox.exe in the MacOS Dock?
i mean i saw it in one of the last mikoritk youtube videos...
Best Regards,
YAN