Gcenx / WineskinServer

Wineskin
GNU Lesser General Public License v2.1
2.4k stars 167 forks source link

Install software (Copy a Folder Inside) failed with nil #400

Open c128128 opened 1 year ago

c128128 commented 1 year ago

Environment (please complete the following information):

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
)
Gcenx commented 1 year ago

Was the directory inside ~/Downloads by chance?

c128128 commented 1 year ago

Yep :), Any suggestions ?

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

Gcenx commented 1 year ago

~/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.

c128128 commented 1 year ago

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

JxxIT commented 4 months ago

Hi,

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