WineskinServer icon indicating copy to clipboard operation
WineskinServer copied to clipboard

how to pass arguments to wrapper app(terminal and url schema)

Open niphor opened this issue 1 year ago • 0 comments

Environment:

  • OS: 13.4.1
  • Winery version: 1.8.4
  • Master Wrapper version: 2.9.1.9
  • Engine version: WS11WineCX64Bit22.1.1-7
  • Hardware: MacBook Pro 16 2019(Intel)
  • Application

Describe the bug I want register a URL schema to Wrapper App. by modifying the Info.plist file, the app can be called, but It seems that arguments not pass correctly

then I try to run CustomEXE with arguments directly, It shows same result.

To Reproduce I create a bat file instead of an exe,just easy to see output

  1. make bat C:\test.bat
echo %0 > C:\result.txt
echo %1 >> C:\result.txt
echo %2 >> C:\result.txt
  1. create an app using Custom EXE Creator in Wineskin Tools panel image

3.add url schema to info.plist image

  1. call url like testsso://abc123 or run ./TestSSO.app/Contents/MacOS/CustomEXE abc123

  2. check the C:\result.txt

"C:\test.bat" 
Echo ���� ON ״̬
Echo ���� ON ״̬

Expected behavior the C:\result.txt should be

"C:\test.bat" 
abc123

Screenshots image

LastRunWine.log no log output when it just run bat LastRunWine.log

niphor avatar Jul 13 '23 02:07 niphor