Ticket #4238 - What is the function of system.cfg ?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Ticket #4238 - What is the function of system.cfg ?

Post by Kunda1 »

I've wondered about this and I can't tell what it's purpose is for:

Code: Select all

$ cat ~/.FreeCAD/system.cfg.old 
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<FCParameters>

  <FCParamGroup Name="Root">
    <FCParamGroup Name="Modules">
      <FCParamGroup Name="Image">
        <FCText Name="HelpIndex">Image/Help/index.html</FCText>
        <FCText Name="WorkBenchName">Image</FCText>
        <FCText Name="WorkBenchModule">ImageWorkbench.py</FCText>
      </FCParamGroup>
      <FCParamGroup Name="Path">
        <FCText Name="HelpIndex">Path/Help/index.html</FCText>
        <FCText Name="WorkBenchName">Path</FCText>
        <FCText Name="WorkBenchModule">PathWorkbench.py</FCText>
      </FCParamGroup>
      <FCParamGroup Name="Spreadsheet">
        <FCText Name="HelpIndex">Spreadsheet/Help/index.html</FCText>
        <FCText Name="WorkBenchName">Spreadsheet</FCText>
        <FCText Name="WorkBenchModule">SpreadsheetWorkbench.py</FCText>
      </FCParamGroup>
    </FCParamGroup>
  </FCParamGroup>

</FCParameters>

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
wmayer
Founder
Posts: 19965
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: What is the function of system.cfg ?

Post by wmayer »

It never had a real function. Maybe this changes one day.
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Re: What is the function of system.cfg ?

Post by Kunda1 »

wmayer wrote: Fri Nov 01, 2019 10:41 am It never had a real function. Maybe this changes one day.
Hey @wmayer thanks for responding. Do you happen to know why it was conceived?

Perhaps we can move local system related parameters like:
  • path/to/3rdParty/binaries
  • ...[wip]
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13447
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4238 - What is the function of system.cfg ?

Post by Kunda1 »

JFYI, tracking this topic via issue #4238
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
openBrain
Veteran
Posts: 8997
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Ticket #4238 - What is the function of system.cfg ?

Post by openBrain »

It could have some logics that user.cfg contains user specific settings, and system.cfg contains OS/system specific parameters.
But the problem I see ATM is that system.cfg is stored in a user dependent location ('~' in Linux, '%APPDATA%' in Windows) so it will never serve its purpose correctly.
My conclusion is that the current system.cfg is forever useless. :)
fc_tofu
Posts: 654
Joined: Sun Jan 05, 2020 4:56 pm

Re: Ticket #4238 - What is the function of system.cfg ?

Post by fc_tofu »

Its filename indicates very importance, while its content is meaningless.

I propose removing it.
TheMarkster
Veteran
Posts: 4874
Joined: Thu Apr 05, 2018 1:53 am

Re: Ticket #4238 - What is the function of system.cfg ?

Post by TheMarkster »

There don't seem to be any system macros, either, unless there are some I don't know about.
Post Reply