diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-11-09 16:38:24 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-11-09 16:38:24 +0000 |
commit | c781ca27b725b0dddb76650ba39794f90df105eb (patch) | |
tree | f0789454647fc749751a6ac1925814bf65a2f946 /amiga | |
parent | d808e46c17d7269d05baff2d0119d5067c423fae (diff) | |
download | netsurf-c781ca27b725b0dddb76650ba39794f90df105eb.tar.gz netsurf-c781ca27b725b0dddb76650ba39794f90df105eb.tar.bz2 |
Add an implied PROGDIR: to the ARexx dir name for scanning, as executing the script with PROGDIR: in it doesn't work.
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/menu.c | 8 | ||||
-rw-r--r-- | amiga/options.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/amiga/menu.c b/amiga/menu.c index 0b93ade65..b1f4ff90c 100644 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -496,8 +496,12 @@ void ami_menu_arexx_scan(struct gui_window_2 *gwin) LONG cont; struct ExAllData *ead; char *menu_lab; - - if(lock = Lock(nsoption_charp(arexx_dir), SHARED_LOCK)) + char lock_dir[1024]; + + strlcpy(lock_dir, "PROGDIR:", 1024); + AddPart(lock_dir, nsoption_charp(arexx_dir), 1024); + + if(lock = Lock(lock_dir, SHARED_LOCK)) { if(buffer = AllocVecTagList(1024, NULL)) { diff --git a/amiga/options.h b/amiga/options.h index f595cd240..b95ddf12d 100644 --- a/amiga/options.h +++ b/amiga/options.h @@ -44,7 +44,7 @@ NSOPTION_BOOL(tab_close_warn, true) NSOPTION_BOOL(tab_always_show, false) NSOPTION_BOOL(kiosk_mode, false) NSOPTION_STRING(search_engines_file, "PROGDIR:Resources/SearchEngines") -NSOPTION_STRING(arexx_dir, "PROGDIR:Rexx") +NSOPTION_STRING(arexx_dir, "Rexx") NSOPTION_STRING(arexx_startup, "Startup.nsrx") NSOPTION_STRING(arexx_shutdown, "Shutdown.nsrx") NSOPTION_STRING(download_dir, NULL) |