mosen / mysides

A command line application for managing OS X Finder sidebar favourites
MIT License
226 stars 29 forks source link

Issue with "add" in 10.13.1 #16

Open bwiessner opened 6 years ago

bwiessner commented 6 years ago

/usr/local/bin/mysides add file:///Users/userx/Downloads 2017-12-08 10:56:16.000 mysides[28668:2122940] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' +[NSString stringWithUTF8String:]: NULL cString' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2cc062fb __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff53573c76 objc_exception_throw + 48 2 CoreFoundation 0x00007fff2cc97d6d +[NSException raise:format:] + 205 3 Foundation 0x00007fff2ec149d1 +[NSString stringWithUTF8String:] + 78 4 mysides 0x000000010242e150 main + 319 5 libdyld.dylib 0x00007fff54162145 start + 1 6 ??? 0x0000000000000003 0x0 + 3 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6

Tatsh commented 5 years ago

This is fixed in the latest version. You need to pass a name as the 3rd argument:

mysides add NAME file:///Users/userx/Downloads