Why does -f or --config need the full path to config file? #1388
-
Running 5.7.3 on macOS If I run Amiberry from command line (Amiberry.app/Contents/MacOS/Amiberry) with -f or --config I have to specify the path to the config file. Should this be the case? Surely if amiberry.conf contains a valid path to your configs folder it would make sense to just be able to specify a config name (even without the .uae) and Amiberry look in your defined configs folder first? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
This is a corollary of amiberry's direct-load logic me thinks...ie; amiberry --help
I get what you're saying, but the above demonstrates how we use the file extension(s) to determine the default action. In effect, you could invoke ....if you do that however, then the Amiga file(s) specified within that 'someconfig.uae' must exist in paths specified therein... which is typically OK as folks tend not to move those files about, however, if they have moved the Amiga file(s) somewhere else, this is going to fail for obvious reasons (disk not found =) It's when you use the other possible invocations of For example, if I invoke amiberry somegame.lha at cmdline, amiberry determines to handle the file as a whdload.lha gamepak (based on the .lha extension), then searches in The thing to note here, is the file itself, somegame.lha , can be anywhere on the filesystem...$HOMEDIR, $Desktop, /tmp, USB removable media ..anywhere, amiberry is going to follow the above process regardless of file location. The same premise exists for floppy/CD image files...if I invoke The same note applies here as well ~ once a config.uae file exists in Operationally, we already have the situation wherein the user can direct-launch a whdload.lha or floppy/CD image, and it's going to work, no further configuration is necessary. I have my action hotkeys set to enable fullscreen toggle & quit functions, so for a title that runs correctly, I don't have to do anything -- this Amiga title does not require an associated config.uae file... simply put ;) OTOH there will always be cases where that is not so ~ further changes in the emulation setup are required to get that title to run correctly on your setup....and this can be all the way from some whdload.lha titles that need some display tweaks, to dropping an AGA only floppy image direct into amiberry, which is going to start as an A500 =) In any case, if/when this happens, you can just hit the F12 key, make changes in the amiberry GUI, save the config.uae for this title (it will be automatically named correctly in the Configurations panel), then the next time you direct-launch this Amiga file with amiberry, it'll work as expected. Interestingly, back when we were discussing this, I had made the point that IF a config.uae file existed for any particular Amiga file, then we should be able to do The equivalent to using the -f or --config /path/to/config.uae invocation for direct launching, is ie; With no switches, amiberry treats it as ...the only time it matters to amiberry, is when the file object is something other than a config.uae file. In this case, amiberry will only check in the configured In the GUI context, we also use this $path as the default placeholder for what's displayed in the GUI -> Configurations panel, and this is also the default Save location for creating/loading config.uae files...and a launch-point for that matter ;) To be fair though, I don't own any Mac hardware, and haven't tested how this pans-out wrt macOS ~ I've given you the linux example of how I understand amiberry to work (for me 8). Might you please try direct-loading some config.uae files, and let us know if you get the same results on your setup? |
Beta Was this translation helpful? Give feedback.
-
It's the same in linux ~ macOS has a different packaging arrangement...and TBH, the pathing in macOS has always driven me nuts. As said, I gave you the linux example ~ the macOS case is different (why the commands I exampled don't work for you ;). It's been over a decade since I touched macOS....I kinda remember some of it... In macOS, amiberry is installed in As you note above, the configuration files path in macOS is I believe when you login to your account on macOS, your $CWD (current working directory) is If that's correct, then you should be able to copy a config.uae into your $CWD ...ie;
Then you should be able to issue the cmd IF that works, then in theory you could ...
Then... Edit: Wrt what you're suggesting here, and AFAIK, the |
Beta Was this translation helpful? Give feedback.
-
The simple answer is, amiberry's not designed to work that way =) Like I said, I do understand what you're getting at, I'm merely pointing out the options available to you. The first thing, is there is natural cmdline ordering... ie; ...the second thing is, perhaps I don't quite appreciate your usage scenario ; macOS is different. For instance... if I think macOS, I think desktop environment ..ie; the iMac machine bought for me back circa 2010, I'd be using amiberry from menu launchers, not an xterm. I know all about xcode & friends (you had to working with WINE on macOS)...but I'm just curious why you're on cmdline? I suppose I should mention the white rabbit special case, just in case you find it useful...
Then when you issue FWIW, I do very much checkout/test amiberry from a xterm window as well, but not from cmdline so much ... midnight commander... I've edited the extensions file, so I can just hit enter on any config/CD/floppy/whdload file, and it fires up amiberry using whatever it was I threw at it =) When I'm testing whdload.lha titles, I'm even too lazy to to open an xterm ~ I just launch the links2 browser pointed at the turran ftp site...ie; I of course have no idea how midwan views this aspect.... I can't think of it being of any immediate benefit in linux, but past personal experience tells me, one can get sick/and/tired/of/nested/paths/in/macOS really...really quickly, so what you suggest makes total sense to me, 'coz I have felt your pain...lol.. =) Likewise however, I can't immediately think of any contra-case wherein such a change would conflict with sop ...especially if it was only a macOS tweak. Little doubt, midwan will weigh in here when he gets to it ;) |
Beta Was this translation helpful? Give feedback.
I've added this logic in the current
preview
, though I didn't have time to test it much so far.