KDE4 rc files?

I am making my own /etc/skel folder and want to setup defaults for sounds and images in /etc/skel/.kde4/share/config/*

Now the default for example in k3b.notifyrc, is this:

Sound=file:///home/me/Theme/sounds/k3b_success1.ogg

I tried to change it to file://~/Theme/sounds/k3b_success1.ogg, but that doesn’t work.

I also see in other config files the $HOME variable, but that usually follows a Recent Files$e]=$HOME/Theme/blah blah line.

So basically me question is which is better to use instead on a file:/// line?

Not understanding quite what you are doing I will limit myself to the different notations you have here. Cutting off the* file://* protocol defining part of the URL we are left with:

/home/me/Theme/...

This is an straight file name with the full path.

$HOME/Theme/...

When one is normaly loged in (as *me in our example) the shell will expand $HOME *with /home/me and thus we arive at the same file name.

~/Theme/...

This is the Tilse Substitution of the shell (read the paragraph in man bash). In this case it repaces the ~ with the value of the *HOME *variable. So this is the same case as the second one above.

I repeat: the last two only fuction correct when used in a loged in environment where *HOME *has a value…

The first one is of course only to be used inside the realm (inside the home directory) of user *me *because when somewhere inside general system directories like */etc *every user would get the name of the file of user *me *in whatever is to be done with it.

file://~/… does not work, for same reason http://~ does not. It requires a path.

Most probably because it is not even interpreted by a shell.

But as the OP only tells “it does not work” it is dificult to find out what he wants to achieve.