Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
This won't work for every use-case, but for mine I was able to use the G_TEST_OPTION_ISOLATE_DIRS flag for g_test_init () like so: g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NU...
#1: Initial revision
This won't work for every use-case, but for mine I was able to use the [`G_TEST_OPTION_ISOLATE_DIRS` flag](https://docs.gtk.org/glib/const.TEST_OPTION_ISOLATE_DIRS.html) for [`g_test_init ()`](https://docs.gtk.org/glib/func.test_init.html) like so: ```c g_test_init (&argc, &argv, G_TEST_OPTION_ISOLATE_DIRS, NULL); ``` This only affects XDG directories, so if your program doesn't respect those or operates outside of them this will do nothing. But for my use-case this is perfect.
