Fails to run up on Windows when invoked from a different directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Low
|
Alexander Wolf | ||
0.14 |
Fix Released
|
Low
|
Alexander Wolf |
Bug Description
Using Stellarium 0.13.1 on Windows 7 64bit (using either Stellarium 32 or 64 bit versions) fails to run when invoked from a different directory.
Install in the default directory.
Then use the command line:
c:
cd \
"Program Files\Stellariu
Gives a error dialog:
"This application failed to start because it could not find or load the Qt platform plugin "windows".
Reinstalling the application may fix this problem."
And then the program aborts.
Whereas on the command line:
cd "Program Files\Stellarium\"
stellarium.exe
Works as expected.
Other FOSS Qt5 programs (e.g. Subsurface) (and Gtk+ programs e.g. Inkscape) work fine when invoked from another directory.
I can work around this problem by creating a shortcut to the main Stellarium binary and calling that (or calling the shortcut on the Desktop or Menu system if available) since the shortcut sets the working directory to the target directory.
Unfortunately that is not ideal for my use case of calling it remotely without 'special system configuration'.
Related branches
Changed in stellarium: | |
status: | Fix Committed → In Progress |
Changed in stellarium: | |
status: | In Progress → Fix Committed |
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
So what?
Stellarium on Windows is started by double-clicking its icon.
If you want to do something else, you must know: Stellarium.exe must be started from its directory so it can find its data.
Also the link is configured so that its working directory is the Stellarium folder.
You created a problem for yourself and already mentioned the (trivial) solution. You can also write a .bat file, equally simple.