Playscii crashes on permission errors when file browsing

Issue #57 resolved
Mark Wonnacott
created an issue

Playscii, run thru itch.io's sandbox, doesn't have permission to open My Pictures etc, and when I try to browse them the whole program crashes.

[2017-03-31 @ 18:04:58.897] [launch/native] out: User profile dir = C:\Users\itch-player-588e4b5d
[2017-03-31 @ 18:04:58.899] [launch/native] out: Roaming AppData dir = C:\Users\itch-player-588e4b5d\AppData\Roaming
[2017-03-31 @ 18:04:58.900] [launch/native] out: Local AppData dir = C:\Users\itch-player-588e4b5d\AppData\Local
[2017-03-31 @ 18:04:58.901] [launch/native] out: Total environment length: 5220
[2017-03-31 @ 18:04:58.901] [launch/native] out: Environment buffer size: 7268
[2017-03-31 @ 18:04:58.901] [launch/native] out: Total environment length: 5220
[2017-03-31 @ 18:04:58.901] [launch/native] out: exe = 'C:\Users\mark\AppData\Roaming\itch\apps\Playscii\playscii\playscii.exe'
[2017-03-31 @ 18:04:58.901] [launch/native] out: cwd = 'C:\Users\mark\AppData\Roaming\itch\apps\Playscii\playscii'
[2017-03-31 @ 18:07:31.082] [launch/native] err: Traceback (most recent call last):
[2017-03-31 @ 18:07:31.086] [launch/native] err:   File "playscii.py", line 1026, in <module>
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "playscii.py", line 703, in main_loop
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "playscii.py", line 734, in update
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "input_handler.py", line 255, in handle_input
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui.py", line 552, in clicked
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_element.py", line 110, in clicked
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_chooser_dialog.py", line 32, in pick_item
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_file_chooser_dialog.py", line 60, in picked
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_chooser_dialog.py", line 183, in change_current_dir
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_file_chooser_dialog.py", line 108, in get_items
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_file_chooser_dialog.py", line 78, in get_filenames
[2017-03-31 @ 18:07:31.087] [launch/native] err:   File "ui_file_chooser_dialog.py", line 85, in get_sorted_dir_list
[2017-03-31 @ 18:07:31.087] [launch/native] err: PermissionError: [WinError 5] Access is denied: 'C:\\Users\\itch-player-588e4b5d\\Documents/My Pictures/'

Comments (1)

  1. Log in to comment