fsleyes:// URL handler
Could be useful for starting up FSLeyes from a web report.
- You need to update
Info.plist
like so:
val="{CFBundleTypeRole=Viewer;"
val="$val CFBundleURLName=\"FSLeyes file\";"
val="$val CFBundleURLSchemes=(fsleyes);}"
defaults write `pwd`/dist/fsleyes.app/Contents/Info.plist \
CFBundleURLTypes -array-add "$val"
- You need to add an event handler in
FSLeyes
. This might be as simple as sub-classingwx.App
, and implementingMacOpenFile
/MacOpenFiles
methods, but could be more complicated, involving a python extension:
http://wiki.wxpython.org/Catching%20AppleEvents%20in%20wxMAC http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X
Will this work under wxPhoenix
?