need info about Preference Packs
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: need info about Preference Packs
Awesome, I'll give it a test later today (I have to teach a class now, so I'll be away for a few hours).
- Chrismettal
- Posts: 43
- Joined: Fri Sep 18, 2020 11:44 am
- Location: Germany
- Contact:
Re: need info about Preference Packs
Thanks!
Adding it as a custom repo seems to work fine at least.
Adding it as a custom repo seems to work fine at least.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: need info about Preference Packs
perhaps it's better to have a separate repo for the new stuff? Now it shows in 0.19's addon manager were AFAIK it won't do anything after download and migth be confusing to some. On the other hand we already have addons that require 0.19 and above and show up in 0.18 so it's not a big deal either.
Re: need info about Preference Packs
Right, there's no way to got back and have 0.19 and earlier recognize that these addons are too new for them, but going forward the Addon Manager will support recognizing that an Addon requires a version of FreeCAD newer than itself, and either not showing that, or warning the user about it.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: need info about Preference Packs
What does the current code (in master) do if it finds the addon requires a higher version? I know there aren't any now because master is the latest, but if that's not coded before release it won't know what to do with that either when it happens. I suggest just warning about minimum version not hiding.chennes wrote: ↑Tue Feb 01, 2022 9:05 pm Right, there's no way to got back and have 0.19 and earlier recognize that these addons are too new for them, but going forward the Addon Manager will support recognizing that an Addon requires a version of FreeCAD newer than itself, and either not showing that, or warning the user about it.
Re: need info about Preference Packs
The branch where I'm working at treats them just like the current one does obsolete Addons: there is just a preference entry that allows you to either hide them, or show them with a warning.adrianinsaval wrote: ↑Wed Feb 02, 2022 6:19 pm What does the current code (in master) do if it finds the addon requires a higher version?
- Chrismettal
- Posts: 43
- Joined: Fri Sep 18, 2020 11:44 am
- Location: Germany
- Contact:
Re: need info about Preference Packs
Hey,
the wiki mentions manual installation of preference packs without the addon manager like this:
I tried putting a working preference pack in ".config/FreeCAD/Preference Packs". ".FreeCAD/Preference Packs" as well as ".local/share/FreeCAD/Preference Packs" because that's where the manually saved ones lie. Am I missing the correct location right now, or am I misinterpreting the wiki?
the wiki mentions manual installation of preference packs without the addon manager like this:
Currently I cannot seem to get that to work though. On an Arch system neither the Flatpak nor a source built 0.20 (68e3376) load preference packs put in any of the config directories I know of. The only place I can add preference packs to make them show up right now is in the source compiled build folder under "share/Gui/PreferencePacks/", where the built-in ones reside. I don't think that directory is accesible for the Flatpak version however, which is the destination for the PreferencePack I am trying to create (Steam Deck only supports the Flatpak version without making the filesystem mutable)To install a pack manually, use git to clone the package repository into your FreeCAD data directory (the directory where your user.cfg file is located), in a subdirectory called "Preference Packs"
I tried putting a working preference pack in ".config/FreeCAD/Preference Packs". ".FreeCAD/Preference Packs" as well as ".local/share/FreeCAD/Preference Packs" because that's where the manually saved ones lie. Am I missing the correct location right now, or am I misinterpreting the wiki?
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: need info about Preference Packs
I would expect this to be the correct one for the source build, however it won't work for flatpak, it would be something like "~/.var/app/org.freecadweb.FreeCAD/data/Preference Packs"
Edit: corrected flatpak data path
Last edited by adrianinsaval on Sat Jul 09, 2022 9:12 pm, edited 1 time in total.
Re: need info about Preference Packs
You should definitely be able to put a new pack in the same location as the manually-saved ones (which should be something like ".local/share/FreeCAD/Preference Packs" for a normal Linux installation, or possibly "~/.var/flatpak/FreeCAD/Data/Preference Packs" for a FlatPak as suggested by adrianinsaval). Basically it's a "Preference Packs" directory in the same place as your user-installed "Mods" directory. If that's not working, it's most likely a problem with the package.xml metadata file.
- adrianinsaval
- Veteran
- Posts: 5553
- Joined: Thu Apr 05, 2018 5:15 pm
Re: need info about Preference Packs
Sorry I think it is actually ~/.var/app/org.freecadweb.FreeCAD/data/Preference Packs for the flatpak