I have a project, which uses gnomes clutter for GUI, and it loads png images from a specified location on disk. I want to be able to for example run the program from a flash drive, in which case,the location of the image files will not be consistent.
How do you specify a file path that may not be consistent? Should I try and embed the image files into the executable? If I were to do this, how would my function look?
You'd load the resource and tell your library to load it from memory, assuming it supports that.
How do you specify a file path that may not be consistent?
If the path is relative to the executable's directory, then that's how you should specify your paths (make a function that returns the executable's path).