#!/bin/bash

launcher_options () {
	launcher="xmame -vidmod 1 -fullscreen"
}

launcher () {
	if ! [[ -f $(which xmame) ]]; then
		zenity --error --title "$avatar_title" --text "xmame is not installed. You need to install xmame-x and xmame-sdl ( on ubuntu: sudo apt-get install xmame-x xmame-sdl )"
	else
		$launcher "$URL"
	fi

	if [[ $? = 1 ]]; then
		xmame "$URL"
	fi

	if [[ $? = 1 ]]; then
		zenity --error --title "$avatar_title" --text "Ops... something is wrong"
	fi
}
