Difference between revisions of "Talk:Python Bindings"

From GnuCash
Jump to: navigation, search
m (Default $XDG_DATA_DIRS: link)
m
 
Line 7: Line 7:
 
:Perhaps we should add a line before to fix the default?
 
:Perhaps we should add a line before to fix the default?
 
:--[[User:Fell|Fell]] ([[User talk:Fell|talk]]) 23:31, 25 October 2023 (UTC)
 
:--[[User:Fell|Fell]] ([[User talk:Fell|talk]]) 23:31, 25 October 2023 (UTC)
 +
 +
 +
I think the intention of this page is to get interested users up an running with python scripting with as little distraction as possible. (Re-)adding /usr/local/share:/usr/share is the safest way for everybody to have a working XDG_DATA_DIRS setup without having to explain the subtleties of it. It doesn't harm to have the same directories added twice in the path list. It does break gnucash if the XDG_DATA_DIRS is set without these two directories in there. This is also why they are added by default via the gnucash environment file.If it bothers you to have a long path, feel free to not add them if you already have an XDG_DATA_DIRS variable set. However as that's not essential to get working with the python bindings I think there's no point in elaborating on that here. I'm fine with you adding a note about this in [[Directory_Standards#XDG]]. --[[User:Gjanssens|Gjanssens]] ([[User talk:Gjanssens|talk]]) 07:18, 26 October 2023 (UTC)

Latest revision as of 07:18, 26 October 2023

@fell: why did you remove the /usr/local/share:/usr/share bits ? In my experiences these are not set by default on all systems and only searched by default if XDG_DATA_DIRS is unset. If they are missing gnucash won't function properly because our dependencies have data in there that should also be found.

Default $XDG_DATA_DIRS

  1. I wonder if that deserves a note in Directory_Standards#XDG.
  2. For me $XDG_DATA_DIRS was becoming longer and longer.
Perhaps we should add a line before to fix the default?
--Fell (talk) 23:31, 25 October 2023 (UTC)


I think the intention of this page is to get interested users up an running with python scripting with as little distraction as possible. (Re-)adding /usr/local/share:/usr/share is the safest way for everybody to have a working XDG_DATA_DIRS setup without having to explain the subtleties of it. It doesn't harm to have the same directories added twice in the path list. It does break gnucash if the XDG_DATA_DIRS is set without these two directories in there. This is also why they are added by default via the gnucash environment file.If it bothers you to have a long path, feel free to not add them if you already have an XDG_DATA_DIRS variable set. However as that's not essential to get working with the python bindings I think there's no point in elaborating on that here. I'm fine with you adding a note about this in Directory_Standards#XDG. --Gjanssens (talk) 07:18, 26 October 2023 (UTC)