Add an implied PROGDIR: to the ARexx dir name for scanning, as executing the script with PROGDIR: in it doesn't work.

This commit is contained in:
Chris Young 2013-11-09 16:38:24 +00:00
parent d808e46c17
commit c781ca27b7
2 changed files with 7 additions and 3 deletions

View File

@ -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))
{

View File

@ -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)