Whisky-App / Whisky

A modern Wine wrapper for macOS built with SwiftUI
https://getwhisky.app
GNU General Public License v3.0
11.81k stars 252 forks source link

[Feature]: Shortcuts for applications installed inside bottles #169

Closed aayork closed 1 year ago

aayork commented 1 year ago

Is your feature request related to a problem?

Not related to a problem

Describe the solution you'd like

Crossover has a feature that allows applications installed into bottles to have shortcuts, is it possible to do something like this with whisky?

Anything else?

N/A

Issue Language

IsaacMarovitz commented 1 year ago

Already added in next release

mtariqsajid commented 1 year ago

Already added in next release

how to create a shortcut can you please add in docs how to add shortcut to macos desktop

neaumusic commented 12 months ago

@mtariqsajid

I have a CLI version set up from this wiki with homebrew (which is where apple computers was founded) with the /usr/local/bin/brew version (not /opt/homebrew/bin/brew) and arch -x86_64 zsh terminal shell, you can turn a text file into a shortcut like this:

#!/bin/bash

# Copy the password to the clipboard
echo 'your-password-here' | pbcopy

eval "$(/usr/local/bin/brew shellenv)"; \
arch -x86_64 gameportingtoolkit-no-hud \
~/Library/Containers/com.isaacmarovitz.Whisky/Bottles/73B80174-C1BB-4B07-ACA0-8A032F92A0EC \
'C:\Program Files\IRONMACE\Blacksmith\BlacksmithBootstrap.exe' &

exit 0

There might be identical 'game porting toolkit' executables that you find to use within ~/Library and /Library Whisky folders for the same purpose, but just make a Folder.app with a text file that has that script and make it executable so you can open it (not sure which chmod I originally used but something like this chmod +x /Applications/Dark\ and\ Darker.app/Dark\ and\ Darker)

In this case I need my password to paste into the launcher every time, so I use pbcopy, probably not the most secure method of doing that but I don't really mind


I usually use Kapeli Dash snippets and Control+R on the command-line to recall past commands, but its nice to use spotlight to search for app thing. My terminal is still my favorite fullscreen background though, haha

mtariqsajid commented 12 months ago

@mtariqsajid

I have a CLI version set up from this wiki with homebrew (which is where apple computers was founded) with the /usr/local/bin/brew version (not /opt/homebrew/bin/brew) and arch -x86_64 zsh terminal shell, you can turn a text file into a shortcut like this:

#!/bin/bash

# Copy the password to the clipboard
echo 'your-password-here' | pbcopy

eval "$(/usr/local/bin/brew shellenv)"; \
arch -x86_64 gameportingtoolkit-no-hud \
~/Library/Containers/com.isaacmarovitz.Whisky/Bottles/73B80174-C1BB-4B07-ACA0-8A032F92A0EC \
'C:\Program Files\IRONMACE\Blacksmith\BlacksmithBootstrap.exe' &

exit 0

There might be identical 'game porting toolkit' executables that you find to use within ~/Library and /Library Whisky folders for the same purpose, but just make a Folder.app with a text file that has that script and make it executable so you can open it (not sure which chmod I originally used but something like this chmod +x /Applications/Dark\ and\ Darker.app/Dark\ and\ Darker)

In this case I need my password to paste into the launcher every time, so I use pbcopy, probably not the most secure method of doing that but I don't really mind

I usually use Kapeli Dash snippets and Control+R on the command-line to recall past commands, but its nice to use spotlight to search for app thing. My terminal is still my favorite fullscreen background though, haha

it required gameportingtoolkit right ? i am on macos 13.5.1 ventura.