splinux #1 Another idea: the program could use readdir to read the content of the user directory and then select the most probably desktop folder.