OrcaSlicer
OrcaSlicer copied to clipboard
The portable version of OrcaSlicer isn't portable. `--datadir` not working
OrcaSlicer Version
1.8.1
OS version
Windows 10
Additional system information
No response
Printer
Creality Ender 3 v3 se
How to reproduce
- Download the portable version of (Orca Slicer OrcaSlicer_Windows_V1.8.1_portable.zip was used in this case)
- Extract Orca Slicer to any folder on a computer A's hard drive.
- Open Orca Slicer
- Set up the printer profile
- Close Orca Slicer
- Copy the folder to computer B
- Open Orca Slicer on computer B
Actual results
None of the previously created configurations are stored in the folder the program was run in.
Expected results
All created profiles, configuration and so on should be stored in the folder the program was run in.
A program which advertises itself as portable should store all configuration, settings, profile and so on in the folder/directory it's run in.
Project file & Debug log uploads
No project file is needed to reproduce this issue.
Checklist of files to include
- [ ] Log file
- [ ] Project file
Here is a temporary solution until it is fixed. I wrote a simple batch script to backup/restore the whole appdata Orca profile. The batch file can be placed anywhere before the backup, but the backup folder must be in the same place as the script afterwards. Nothing will be done if there is nothing to do.
OrcaSlicer profile manager v3.7.zip
Note : future updates (if any, v3.8 as I'm writing) will be available on my blog
One possible way to implement a real portable mode is: When Orca is startup, it checks if there is a .portable file next to the exe. If yes, then it puts the data folder under current dir, otherwise uses appdata folder as usual.
There will be some other issues need to be solved, such as path to customized bed texture/model that stored as abs path in profiles etc.
Related: https://github.com/SoftFever/OrcaSlicer/issues/2947
@SoftFever thoughts?
We can use the '—datadir’ parameter when start orca-slicer.exe. that should work for you?
I like the solution from noisyfox. This is the way how susi works https://github.com/supermerill/SuperSlicer/issues/2925#issuecomment-1187434884
I think if you use the --datadir you need always a absolute path
We can use the '—datadir’ parameter when start orca-slicer.exe. that should work for you?
In the lastest nightlies this option doesn't work. #3132
We can use the '—datadir’ parameter when start orca-slicer.exe. that should work for you?
In the lastest nightlies this option doesn't work. #3132
+1 for this, this is an essential feature for me, i've been using different instances for each of my printers. But currently i need the dev branch for my A1 Printer. Hopefully it can be fixed 🙈
I will take a look, thanks for the feedback
Is the proposed solution to ask the user to add --datadir with a fixed path when launching Orca Slicer? If so, it'll still not be a portable application.
I'd prefer there be an option to check for the .portable file, not just pass a command line parameter to the exe. That way even if you run the exe directly, it'll still be in portable mode.