marijnkampf / Random-Photo-Screensaver

Source of Random Photo Screensaver
http://www.abscreensavers.com/random-photo-screensaver/open-source
Other
45 stars 14 forks source link

Inaccessible network drive breaks configuration UI #87

Open mallardtheduck opened 7 years ago

mallardtheduck commented 7 years ago

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

marijnkampf commented 7 years ago

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.

jcmason-sd commented 4 years ago

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