WineskinServer icon indicating copy to clipboard operation
WineskinServer copied to clipboard

Install software (Copy a Folder Inside) failed with nil

Open c128128 opened this issue 1 year ago • 5 comments

Environment (please complete the following information):

  • OS: macOS 13.3.1
  • Winery version: 1.8.4.2
  • Master Wrapper version: 2.9.1.9
  • Engine version: WS11WinCX64Bit22.1.1-rc2
  • Hardware: Mac Studio (2022) (Apple Silicon, M1)

When I try to install an app with Wineskin.app -> Install Software -> Copy a Folder Inside, after I select the folder the loading indicator forever. From Console.app I get *** -[NSFileManager subpathsOfDirectoryAtPath:error:]: path is nil and the stacklog:

(
	0   CoreFoundation                      0x00007ff80a6e4be2 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff80a20c75c objc_exception_throw + 48
	2   Foundation                          0x00007ff80b4e1177 -[NSFileManager subpathsOfDirectoryAtPath:error:] + 233
	3   Wineskin                            0x00000001004787c5 -[WineskinAppDelegate runnableSubpathsInWrapperCDrive] + 87
	4   Wineskin                            0x000000010047950f -[WineskinAppDelegate copyFolderRemovingOriginal:] + 454
	5   AppKit                              0x00007ff80d85093c -[NSApplication(NSResponder) sendAction:to:from:] + 323
	6   AppKit                              0x00007ff80d8507c0 -[NSControl sendAction:to:] + 86
	7   AppKit                              0x00007ff80d8506f2 __26-[NSCell _sendActionFrom:]_block_invoke + 131
	8   AppKit                              0x00007ff80d8505fb -[NSCell _sendActionFrom:] + 171
	9   AppKit                              0x00007ff80d850541 -[NSButtonCell _sendActionFrom:] + 96
	10  AppKit                              0x00007ff80d84d3f5 NSControlTrackMouse + 1816
	11  AppKit                              0x00007ff80d84ccb9 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 121
	12  AppKit                              0x00007ff80d84cb8c -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 606
	13  AppKit                              0x00007ff80d84bfd0 -[NSControl mouseDown:] + 659
	14  AppKit                              0x00007ff80d84a4b1 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4330
	15  AppKit                              0x00007ff80d7c1cef -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 404
	16  AppKit                              0x00007ff80d7c193f -[NSWindow(NSEventRouting) sendEvent:] + 345
	17  AppKit                              0x00007ff80d7c0319 -[NSApplication(NSEvent) sendEvent:] + 345
	18  AppKit                              0x00007ff80da7abbe -[NSApplication _handleEvent:] + 65
	19  AppKit                              0x00007ff80d64fcdd -[NSApplication run] + 623
	20  AppKit                              0x00007ff80d623ed2 NSApplicationMain + 817
	21  dyld                                0x00000002006c741f start + 1903
)

c128128 avatar May 17 '23 14:05 c128128

Was the directory inside ~/Downloads by chance?

Gcenx avatar May 19 '23 23:05 Gcenx

Yep :), Any suggestions ?

Update: Tried from ~/Desktop and ~/Applications, same result.

c128128 avatar May 24 '23 17:05 c128128

~/Desktop, ~/Downloads and some other user directories are protected and require you to give Wineskin permissions to access these directory’s, if permission isn’t granted it will fail.

You usually be asked the first time for permission to access these directory’s.

Gcenx avatar Jun 01 '23 15:06 Gcenx

But I don't get any prompt, that's very strange. Maybe it needs some kind of entitlements ? to trigger the prompt.

c128128 avatar Jun 16 '23 10:06 c128128

Hi,

I'm having the same issue, Wineskin Winery asks me for permissions not the app itself.

JxxIT avatar Mar 01 '24 12:03 JxxIT