Random-Photo-Screensaver icon indicating copy to clipboard operation
Random-Photo-Screensaver copied to clipboard

Inaccessible network drive breaks configuration UI

Open mallardtheduck opened this issue 8 years ago • 2 comments

Probably quite an unusual situation, but I have a network drive configured by group policy to which my user account doesn't actually have access.

This causes an exception of type System.IO.IOException to be thrown in the RPS.Config.getInitialFoldersJSON function on line 483 where the code attempts to read the volume label, which then triggers a couple of script errors and prevents the tree view from displaying in the configuration UI.

As a quick fix, wrapping the line in a try-catch to ignore the exception fixes the issue for me...

mallardtheduck avatar Feb 21 '17 11:02 mallardtheduck

Thanks for your feedback, could you include the code block that you've put the try catch around? Just to make sure that it catches the correct bit.

marijnkampf avatar Feb 22 '17 20:02 marijnkampf

I am seeing this error on the machine I have just installed RPS on to and unfortunately am not able to understand the suggested quick fix mentioned above.

Any help that either of you could provide as to where to put the try-catch to prevent this error would be really appreciated.

Cheers,

John

jcmason-sd avatar Nov 07 '19 14:11 jcmason-sd