Giter Club home page Giter Club logo

Comments (6)

mtkennerly avatar mtkennerly commented on June 2, 2024

Steam is probably running the command with a limited PATH environment variable. I think the easiest solution would be to use an absolute path instead of just flatpak.

Could you open a console and run which flatpak? Then you can insert that full path in the script:

<FULL_PATH_HERE>/flatpak run com.github.mtkennerly.ludusavi --config $HOME/.var/app/com.github.mtkennerly.ludusavi/config/ludusavi wrap ...

from ludusavi.

LoetkolbenLukas avatar LoetkolbenLukas commented on June 2, 2024

I don't really know what Steam is doing, but i let it output the PATH content, but it was completely empty.
Changing the flatpak path to the full path didn't work:

/var/home/<user>/.local/share/Steam/steamapps/common/FTL Faster Than Light/FTL: line 9: /usr/bin/flatpak: No such file or directory

from ludusavi.

mtkennerly avatar mtkennerly commented on June 2, 2024

That's strange. I would've expected a permission error rather than not recognizing the path at all.

Could you give this a try and see what happens?

  • Download the non-Flatpak version of Ludusavi (i.e., ludusavi-v0.22.0-linux.zip) and extract it somewhere in your home folder
  • Mark it as executable (chmod +x ./ludusavi)
  • In your script, reference the executable with an absolute path

from ludusavi.

LoetkolbenLukas avatar LoetkolbenLukas commented on June 2, 2024

I tried your suggestion and it launched! Yay

Only thing i am not sure about is if it backed up anything. I had the --gui option set, but there was no confirmation dialogue. I tested the behaviour when omitting the --gui option, but in that case I got this error:
Restore save data for FTL: Faster Than Light? [y/n] �[?25lUnable to request confirmation.

This sort of makes sense to me since i cannot confirm anything, but I would love to either set a default to always backup and restore or maybe find out why i don't get the GUI confirmation dialogue.

Do you have any idea?

I checked if it backed up anything, but it seems like it didn't:

lukas@Lukas-SteamDeck:~/OneDrive - Personal/Anwendungen/Backup/SteamDeck/FTL_ Faster Than Light$ ls -la
total 0
drwxr-xr-x. 2 lukas lukas  4096 Mar 15 05:56 .
drwxr-xr-x. 4 lukas lukas  4096 Mar 15 05:56 ..
-rw-r--r--. 1 lukas lukas 13290 Mar 15 13:01 backup-20240315T120149Z.zip
-rw-r--r--. 1 lukas lukas  3833 Feb 23 09:01 hs_mv_prof_backup.sav
-rw-r--r--. 1 lukas lukas  1070 Mar 12 20:03 mapping.yaml
lukas@Lukas-SteamDeck:~/OneDrive - Personal/Anwendungen/Backup/SteamDeck/FTL_ Faster Than Light$ ls -la
total 0
drwxr-xr-x. 2 lukas lukas  4096 Mar 15 05:56 .
drwxr-xr-x. 4 lukas lukas  4096 Mar 15 05:56 ..
-rw-r--r--. 1 lukas lukas 13290 Mar 15 13:01 backup-20240315T120149Z.zip
-rw-r--r--. 1 lukas lukas  3833 Feb 23 09:01 hs_mv_prof_backup.sav
-rw-r--r--. 1 lukas lukas  1070 Mar 12 20:03 mapping.yaml

Here is another log snippet, but i am not sure if this is from the Game or from ludusavi:

Warning: <FTL> not found in data/mup_mvkestrel_a.xml, adding wrapper tag
Null event creation = DROPPOINT_SUPPLY_DEPOT_LIST
Something went wrong in saving the profile!
Something went wrong in saving the profile!
Something went wrong in saving the profile!
Couldn't find in dictionary: hotkey_drone5
Couldn't find in dictionary: hotkey_drone6
Couldn't find in dictionary: hotkey_drone5
Couldn't find in dictionary: hotkey_drone6
Warning: <FTL> not found in data/mup_mvkestrel_a.xml, adding wrapper tag
Something went wrong in saving the profile!
Something went wrong in saving the profile!
Warning: <FTL> not found in data/mu_curator.xml, adding wrapper tag
Steam stats received
Something went wrong in saving the profile!
Something went wrong in saving the profile!
Something went wrong in saving the profile!
Finalizing Steam achievements

from ludusavi.

mtkennerly avatar mtkennerly commented on June 2, 2024

I tried your suggestion and it launched! Yay

Nice 🎉

I would love to either set a default to always backup and restore

I've just added a --force option in master. Here's a Linux build: ludusavi-v0.22.0-post.25+e2d8f79-linux.zip . Be careful, though, because Ludusavi might think some games exit right away, like if the main executable starts the actual game in the background and then quits.

or maybe find out why i don't get the GUI confirmation dialogue.

Could you check $HOME/.var/app/com.github.mtkennerly.ludusavi/config/ludusavi for a ludusavi_rCURRENT.log file? After you hit the error, that file should contain a line with Unable to request confirmation: containing the reason.

I'm guessing it's related to why the flatpak executable didn't work, since the GUI popups will try to use zenity or kdialog on Linux.

Here is another log snippet, but i am not sure if this is from the Game or from ludusavi

That's from the game.

from ludusavi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.