[Github-comments] [geany/geany] Please implement way to alter path to geany.glade at runtime (#1702)

krisjace notifications at xxxxx
Sat Dec 2 09:24:12 UTC 2017


GResources sounds like a very good idea, but I also proposed in the other post, that the paths, instead of being constants generated by prefix during ./configure, are completely replaced in all of the source code, with GetDataPath() function, and then you just add that function in some central place, and it uses $PATH-like loginc to test few paths according to priority:
1. path specified by the prefix (current), if not found then
2. path relative to user's home folder ($HOME), if still not then
3. path relative to the folder of the executable (argv[0])

Also, optionally, an environmental variable could also be tested in that function and give, for example highest priority.

Conceptually it feels sound to me, and if Geany source code is fairly well structured, or if someone knows it well, should be an easy task as well.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1702#issuecomment-348679823
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171202/fa4d83f0/attachment.html>


More information about the Github-comments mailing list