The list of folders can be retrieved using the command kde4-config . The value defaults to $ HOME/.kde4/cgi-bin/. This results n the $ being a whitespace far from home ($ home -> $home), Also, the final dot after a path or url is in general not a good idea, but in this case I suppose there is no other way to do it.