wail icon indicating copy to clipboard operation
wail copied to clipboard

Paths for resources are hard-coded, requiring the app to reside in a very specific location on the user's hard disk

Open machawk1 opened this issue 11 years ago • 6 comments

Potentially run a setup on first launch to write these files, much like a Heritrix job's XML is generated when a one-off crawl is initiated.

machawk1 avatar Mar 20 '13 18:03 machawk1

Consider using the user's /Library directory in OS X or giving the ability to set these values on first start.

machawk1 avatar Mar 21 '13 14:03 machawk1

QuickSilver uses this approach (see attached pic). qs

machawk1 avatar Apr 23 '13 19:04 machawk1

A templating system like Mustache ( https://github.com/defunkt/pystache ) to allow these paths to be configured on first-run or re-configured in the app.

machawk1 avatar Jan 30 '14 17:01 machawk1

Another clever method taken by Kaleidoscope: screen shot 2014-01-31 at 2 47 53 pm

machawk1 avatar Jan 31 '14 19:01 machawk1

Sawood's proposed modification to wayback.xml would remedy this issue. Upon launch of the WAIL binary, the current path of the binary could set system-level environment variables, which would then be read in the Spring file here.

Relevant OpenWayback ticket: https://github.com/iipc/openwayback/issues/217

wayback.xml

    wayback.basedir=#{systemEnvironment['WAYBACK_BASEDIR']?:'/tmp/openwayback'}
    ...

    wayback.archivedir.1=${wayback.basedir}/files1/
    wayback.archivedir.2=${wayback.basedir}/files2/

    wayback.url.scheme=#{systemEnvironment['WAYBACK_URL_SCHEME']?:'http'}
    wayback.url.host=#{systemEnvironment['WAYBACK_URL_HOST']?:'localhost'}
    wayback.url.port=#{systemEnvironment['WAYBACK_URL_PORT']?:'8080'}

machawk1 avatar Feb 20 '15 16:02 machawk1

screen shot 2015-09-05 at 11 01 58 am

machawk1 avatar Sep 05 '15 15:09 machawk1