machawk1 / wail

:whale2: Web Archiving Integration Layer: One-Click User Instigated Preservation
https://matkelly.com/wail
MIT License
350 stars 35 forks source link

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

Open machawk1 opened 11 years ago

machawk1 commented 11 years ago

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 commented 11 years ago

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

machawk1 commented 11 years ago

QuickSilver uses this approach (see attached pic). qs

machawk1 commented 10 years ago

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 commented 10 years ago

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

machawk1 commented 9 years ago

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 commented 9 years ago

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