Install path dialog

From BibleTime
Jump to: navigation, search

File:Pathdialog.png

The idea is that there are standard paths which are usually used in every system: the appdata directories in Windows and /usr/share/sword and /home/user/.sword in Linux. Currently the user must remove the paths from the list and add them again if needed. This is an easier way to do it for those standard paths. The old "Add/Remove" UI would go to the "Extra paths" tab. There the user could add any path except any of the standard paths. Extra paths could also have a checkbox so the user could easily uncheck/check them temporarily without a need to remove/add them.

This would need a change in the backend, too. My idea is this: we would use another constructor for the SWORD swmgr and use a custom config object created dynamically. I don't know if ~/.sword/sword.conf is actually useful at all. Other frontends don't probably use it, at least Xiphos doesn't. The SWORD engine should be changed to make it useful. We could use our own config system to save and load paths. They would be added to the dynamically created swconfig object which the backend would use.

Troy recommended not to bypass the default SWORD system, but the engine is a mess and is only harmful if we want to keep the ability to configure the paths.