Giter VIP home page Giter VIP logo

Comments (7)

thw26 avatar thw26 commented on July 20, 2024

This issue appears to be related to having an old config file in the config dir. The workaround is to move it or delete it.

We may want to add some migration code. Or even a "test if json" check.

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

I think you're right. The ultimate error you're seeing is because logos_error wasn't getting imported into config.py. When I fix that, I get this output:

$ ./LogosLinuxInstaller.py -h
ERROR:root:Error decoding config file /home/nate/.config/Logos_on_Linux/Logos_on_Linux.conf: Expecting value: line 2 column 1 (char 1)
CRITICAL:root:Error: Unable to get config at /home/nate/.config/Logos_on_Linux/Logos_on_Linux.conf
If you need help, please consult:
https://github.com/ferion11/LogosLinuxInstaller/wiki
https://t.me/linux_logos
https://matrix.to/#/#logosbible:matrix.org
Processus arrêté

So then the question becomes what to do about it? I like the config migration idea. Can you send me a valid config file from the bash script? I can see what it might take to convert it.

from logoslinuxinstaller.

thw26 avatar thw26 commented on July 20, 2024

Here is a config I backed up before running the Python app.

# INSTALL OPTIONS
FLPRODUCT="Logos"
FLPRODUCTi="logos4"
TARGETVERSION="10"
INSTALLDIR="/home/thwright/LogosBible10"
APPDIR="/home/thwright/LogosBible10/data"
APPDIR_BINDIR="/home/thwright/LogosBible10/data/bin"
WINETRICKSBIN="/home/thwright/LogosBible10/data/bin/winetricks"
WINEPREFIX="/home/thwright/LogosBible10/data/wine64_bottle"
WINEBIN_CODE="Proton"
WINE_EXE="/home/thwright/bin/wine64"
WINESERVER_EXE="/home/thwright/bin/wineserver"
WINE64_APPIMAGE_FULL_URL="https://github.com/ferion11/LogosLinuxInstaller/releases/download/v10.0-1/wine-staging_7.18-x86_64.AppImage"
APPIMAGE_LINK_SELECTION_NAME="selected_wine.AppImage"
WINE64_APPIMAGE_FULL_FILENAME="wine-staging_7.18-x86_64.AppImage"
LOGOS_EXECUTABLE="Logos_v10.1.0.0056-x64.msi"
LOGOS_EXE="/home/thwright/LogosBible10/data/wine64_bottle/drive_c/users/steamuser/AppData/Local/Logos/Logos.exe"
LOGOS_DIR="$(dirname "${LOGOS_EXE}")"

# RUN OPTIONS
LOGS="DISABLED"

# RESTORE OPTIONS
BACKUPDIR=""

One of these appears to be broken: LOGOS_DIR.

I would think the main thing we could migrate would be the WINE_EXE, WINESERVER_EXE, the APPIMAGE bin, and the APPDIR.

An issue we will bump into though is if a user tries to install an AppImage install and but the previous install is using a system binary. In general, our check for a previous install should solve that, but if we ever want to be able to update an install in place, I would think we would need to do something more. The issues I'm thinking of that could be of some conflict are:

ferion11/LogosLinuxInstaller#130
ferion11/LogosLinuxInstaller#211

That being said, we don't need to solve those in this issue, as they will require a fair amount of work.

Once we release, I would see ferion11/LogosLinuxInstaller/issues/130 as being our next big target for improvement.

from logoslinuxinstaller.

thw26 avatar thw26 commented on July 20, 2024

One last thought: another config var available only post-login that is useful for backups is the random Logos user ID. This should be visible in the backup/restore code in Bash. We might want to add this to the config. This is how Logos would recognize different logins on the same device.

This was obtained in the launcher.

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

One of these appears to be broken: LOGOS_DIR.

If LOGOS_EXE is already known/defined, then LOGOS_DIR can always just be found/set at runtime. For that matter, the same goes for APPDIR and INSTALLDIR, and I think FLPRODUCT and TARGETVERSION, right, since they are used to create INSTALLDIR?

from logoslinuxinstaller.

n8marti avatar n8marti commented on July 20, 2024

Another possibility to consider is to call the v4+ config file Logos_on_Linux.json. This would allow Logos_on_Linux.conf to be converted to JSON without being overwritten, and it would be clearer what format the contents are in.

from logoslinuxinstaller.

thw26 avatar thw26 commented on July 20, 2024

Another possibility to consider is to call the v4+ config file Logos_on_Linux.json. This would allow Logos_on_Linux.conf to be converted to JSON without being overwritten, and it would be clearer what format the contents are in.

This would certainly be the easiest solution and follows naming scheme better.

from logoslinuxinstaller.

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.