You are here

[Fixed] Stellarium resets some settings if run via the platform

14 posts / 0 new
Last post
ANTICHRISTUS REX
ANTICHRISTUS REX's picture
Online
Last seen: 26 min 11 sec ago
Translator
Joined: 2019-07-19 07:09
[Fixed] Stellarium resets some settings if run via the platform

Hello friends!

Some Stellarium's settings (left panel) are reseted if we run Stellarium from the PA Platform. Nothing happens if we run the executable from its containing folder, or from the taskbar's shortcut.

The most flagrant setting is the language, I set it to French and it went to English every time I run it (via the platform). I've also noticed the plugins' tab, checked and unchecked plugins are reseted to their defaults.
The "View's settings" don't seem affected.

  • ↓↓ Tested on ↓↓
  • OS: Windows 7 32 & 64 bit.
    Platform: 16.1.1 - 17.0 - 17.0.1 - 17.1 - 17.1.1 (old and fresh installations).
    Stellarium versions: 0.13.3 - 0.18.2 - 0.19.1.1 - 0.20.2
    Firewall: (Seem irrelevant, but..) Peerblock 1.2

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Running in Local Mode

    If you run stellarium.exe directly or pin it to the taskbar in Windows and run that, you're bypassing StellariumPortable.exe entirely and running it in local mode. So all your settings are local on your C drive.

    You must run StellariumPortable.exe or run it from the PA.c Platform for it to be portable. If you'd like it pinned to the taskbar, you can do this from within the PA.c Platform by right-clicking the app. It will generate a link that understands the two separate EXEs and tell you how to pin it.

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    That's exactly what I'm doing !

    You must run StellariumPortable.exe or run it from the PA.c Platform for it to be portable.

    That's exactly what I'm doing, running the right executable ↓↓
    C:\...\PortableApps\StellariumPortable\StellariumPortable.exe

    If you'd like it pinned to the taskbar, you can do this from within the PA.c Platform by right-clicking the app. It will generate a link that understands the two separate EXEs and tell you how to pin it.

    And pinning it to taskbar from the platform, it generated this shortcut ↓↓
    C:\Users\Kim King\PortableApps.comTaskbarShortcuts\Stellarium Portable.lnk

    I'm doing everything correctly, and getting the bugs described above ↑↑

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Platform Language

    What's your Platform language set to? Do you have automatic app language switching on?

    If the answer is English and Yes (the defaults) you told Stellarium Portable to be in English so it's in English.

    If the answer is French and Yes, then Stellarium changed the way it stores language and auto language switching is broken. Turning it off may fix this.

    Please let me know which it is.

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    French

    What's your Platform language set to?

    French.

    Do you have automatic app language switching on?

    Yes.

    EDIT: It's not only about language, other settings are also reseted !

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Changes Bug

    It seems like the INI has to have the odd spacing that Stellarium uses now and language location changed. Please try editing your StellariumPortable\App\AppInfo\Launcher\StellariumPortable.ini file and replacing it with this:

    [Launch]
    ProgramExecutable=Stellarium\stellarium.exe
    WorkingDirectory=%PAL:AppDir%\Stellarium
    DirectoryMoveOK=yes
    SupportsUNC=yes
    
    MinOS=Vista
    
    [DirectoriesMove]
    Stellarium=%APPDATA%\Stellarium
    StellariumLocal=%LOCALAPPDATA%\Stellarium
    
    [DirectoriesCleanupIfEmpty]
    1=%DOCUMENTS%\My Pictures\Stellarium
    2=%USERPROFILE%\My Pictures\Stellarium
    
    [FileWrite1]
    Type=ConfigWrite
    File=%PAL:DataDir%\Stellarium\config.ini
    Entry='sky_locale                             = '
    Value=%PAL:LanguageCustom%
    
    [FileWrite2]
    Type=ConfigWrite
    File=%PAL:DataDir%\Stellarium\config.ini
    Entry='app_locale                             = '
    Value=%PAL:LanguageCustom%
    
    [FileWrite3]
    Type=ConfigWrite
    File=%PAL:DataDir%\Stellarium\config.ini
    Entry='screenshot_dir                         = '
    Value=%PortableApps.comPictures%
    
    [Language]
    Base=%PortableApps.comLocaleglibc%
    CheckIfExists=%PAL:AppDir%\Stellarium\translations\stellarium\*.qm
    DefaultIfNotExists=en
    
    [LanguageFile]
    Type=ConfigRead
    File=%PAL:DataDir%\Stellarium\config.ini
    Key='sky_locale                             = '
    
    [LanguageStrings]
    no=nb

    I think that may fix it. And, if so, I'll push out a revision.

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    Thanks !!

    Wow, it works, at least about language and plugins !
    I'll recheck deeply, to be certain. Thanks a lot !!

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    Gord Caswell
    Gord Caswell's picture
    Offline
    Last seen: 1 month 2 weeks ago
    DeveloperModerator
    Joined: 2008-07-24 18:46
    FileWrite3

    FileWrite3 should also be a ConfigWrite rather than an INI Type

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Thanks

    Thanks for the catch. Updated it.

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    *ok*

    Ok

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Rev 2 is mirroring

    Rev 2 is mirroring

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    nice !

    nice !

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    John T. Haller
    John T. Haller's picture
    Offline
    Last seen: 6 hours 57 min ago
    AdminDeveloperModeratorTranslator
    Joined: 2005-11-28 22:21
    Fixed in Stellarium Portable 0.20.2 Rev 2

    This is fixed in Stellarium Portable 0.20.2 Rev 2. The launcher has been updated to support Stellarium's specific config formatting and preserve automatic language switching. Existing users with the PA.c Platform will get a small quick-install patch as an update.

    Sometimes, the impossible can become possible, if you're awesome!

    ANTICHRISTUS REX
    ANTICHRISTUS REX's picture
    Online
    Last seen: 26 min 11 sec ago
    Translator
    Joined: 2019-07-19 07:09
    Working !

    The patch works like a charm. Thanks again !

    “My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”

    ― Nikola Tesla ―

    Log in or register to post comments