I have a project QGIS used in both Linux and Windows, synchronizing the working directory with dropbox. The project uses relative paths, so that the directory structure is observed only from the parent folder of the project.
Everything works fine except when I try to use a style with a "marker SVG" where I use to define "myFile.svg" that represent "defined by data properties".
The problem is that if I write the path of file in Windows format (path with backslashes), Linux (path with common bar) does not work and vice versa.
Is there any function to translate paths depending on the operating system used for? Or is there any way of knowing, in the expression editor which OS I'm using? I solve the latter case using a "case" and setting the appropriate path in each case.