Author Topic: Executable path on Ubuntu 18.04  (Read 291 times)

hallwayorchard

  • Newbie
  • *
  • Posts: 6
    • View Profile
Executable path on Ubuntu 18.04
« on: June 14, 2019, 06:21:50 AM »
Hi All,

I am in the process of using AM for a frontend for MAME 0.209 on Ubuntu 18.04.

I *think* I am well along in the process; AM has generated the list of roms, however I cannot seem to launch roms from AM.  I have tested and can launch them from MAME.

Here is how I've got the emulator set up in AM:

Code: [Select]
Executable: /snap/mame/1122/mame
Command Arguments: "[romfilename]"

I'm assuming I'm messing something up in these two fields.  Any help would be much appreciated!

Thanks!

Favdeacon

  • Sr. Member
  • ****
  • Posts: 124
    • View Profile
Re: Executable path on Ubuntu 18.04
« Reply #1 on: June 14, 2019, 09:34:30 AM »
The path /snap/mame/1122/mame seems a little strange. Is that really the path to your mame executable?

The leading "/" means that "snap" is in your system's root directory, which I doubt. If "snap" is in your home directory, this should work:

Code: [Select]
Executable: $HOME/snap/mame/1122/mame

$HOME is an environmental variable that contains the path to the current user's home directory.

For comparison, here's the resp. part of my $HOME/.attract/emulators/mame.cfg:

Code: [Select]
executable           $HOME/bin/mame64
args                 -video bgfx [name]
workdir              $HOME/mame
rompath              $HOME/mame/roms
romext               .zip;.7z;<DIR>
system               Arcade

However, I'm still using Attract Mode 2.2.1-50, and I don't know if it's configuration differs from the current version.


hallwayorchard

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Executable path on Ubuntu 18.04
« Reply #2 on: June 14, 2019, 10:36:39 AM »
Thanks for the reply... yes, Snap is in my root.  I went against convention and installed MAME via the new(ish) Snappy deployment mechanism.  That is where everything ends up.

hallwayorchard

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Executable path on Ubuntu 18.04
« Reply #3 on: June 14, 2019, 11:45:41 AM »
UPDATE:

Looks like I was struggling for nothing. Since MAME is executable from any location from the command line, all I needed was to delete any path reference.

I changed my settings to:

Code: [Select]
Executable:   mame
And now everything seems to be working!

Favdeacon

  • Sr. Member
  • ****
  • Posts: 124
    • View Profile
Re: Executable path on Ubuntu 18.04
« Reply #4 on: June 15, 2019, 09:26:14 AM »
Thanks for sharing your solution. I have no experience with snap installations.

It's still strange why AM didn't find the executable with the path, since it does so in my case. The path was 100% correct?