OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

The portable version of OrcaSlicer isn't portable. `--datadir` not working

Open mogrol opened this issue 1 year ago • 7 comments

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

mogrol avatar Dec 19 '23 11:12 mogrol

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.

image

OrcaSlicer profile manager v3.7.zip

Note : future updates (if any, v3.8 as I'm writing) will be available on my blog

ilko-k avatar Dec 19 '23 16:12 ilko-k

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?

Noisyfox avatar Dec 20 '23 01:12 Noisyfox

We can use the '—datadir’ parameter when start orca-slicer.exe. that should work for you?

SoftFever avatar Dec 20 '23 02:12 SoftFever

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

tome9111991 avatar Dec 20 '23 10:12 tome9111991

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

javales74 avatar Dec 20 '23 19:12 javales74

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 🙈

abstractFlo avatar Dec 24 '23 09:12 abstractFlo

I will take a look, thanks for the feedback

SoftFever avatar Dec 24 '23 09:12 SoftFever

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.

mogrol avatar Dec 28 '23 07:12 mogrol

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.

AJolly avatar Mar 08 '24 17:03 AJolly