-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect and prompt user if local Fightcade install detected #126
Comments
if which fightcade >/dev/null 2>&1; then zenity --question --text="A local installation of Fightcade has been detected. Do you want to continue with the Flatpak version?"
fi flatpak run net.fightcade.Fightcade |
There's a few other decisions to be made here. I think the Zenity popup will have to have a few options, firstly the text would be something like There also needs to be a checkbox that says Alternatively the popup is just a one time warning that lets the user know to delete the files themselves or the emulators won't work. This will probably be the MVP before I make decisions on whether to handle it myself (I'm trying to get in contact with the Fightcade devs to ask if they can integrate this functionality in the client itself rather than some cruddy Zenity wrapper) |
Alright I gotcha, I'll see if I can have it done by tonight. |
if [ -f ~/.disable_fightcade_warning ]; then if which fightcade >/dev/null 2>&1; then
fi flatpak run net.fightcade.Fightcade |
what the code does is check if the local installation of fightcade is present. if so, the script will then ask the user if they want to keep the installation of fightcade. If yes, script then prompts the user that their system may need to restart (to launch the emulator). antother if statement is followed asking the user if they want to disable the warning. finally, the FlatPak version of fightcade is launched. |
your probably better off going with your other option of just getting in contact with the devs to make it more official but just let me know if you go this route and want me to make any other changes |
Fightcade can't properly launch URLs when both the desktop version and Flatpak version are installed simultaneously. We should check for the existence of these
.desktop
files and open a zenity popup to let the user know this is going to not work correctly with the Flatpak.The text was updated successfully, but these errors were encountered: