Whisky-App / Whisky

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

[Feature]: Locale support for ClickOnce apps #926

Open maemigh opened 2 months ago

maemigh commented 2 months ago

Is your feature request related to a problem?

ClickOnce apps don't appear to appear as an installed application, so locale can't be set. Whisky also cannot directly open .application files (however, can Open With... Whisky when right clicking file).

Describe the solution you'd like

I specifically need to set the environment variable LC_ALL=ja_JP when running the app. I'm not sure if the per-app settings do this, but per-app settings do not seem to be available for ClickOnce apps as they don't appear as an installed application.

Alternatively, a way to configure environment variables per Bottle would also work.

Anything else?

I can run the app if I run from the command line while setting LC_ALL=ja_JP

Issue Language

IsaacMarovitz commented 2 months ago

I'm unfamiliar with the structure of ClickOnce apps, but there should be an exe getting launched somewhere. Could you read the manifest and find the location of this executable? In that case you could add it to the pinned application list.

maemigh commented 2 months ago

I figured out the way to run it: rundll32.exe dfshim.dll,ShOpenVerbShortcut C:\users\crossover\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\App Folder\AppNameHere.appref-ms

Clickonce apps add the .appref-ms file to the start menu, so I guess it would be nice if Whisky could auto-launch files with this extension with rundll32.exe dfshim.dll,ShOpenVerbShortcut and allow them to be added with Pin Program.

Wonder whats happening behind the scenes for the right-click Open With menu method to work?