You are not logged in.

#1 2011-10-01 22:17:34

newarch2011
Member
Registered: 2011-09-18
Posts: 41

how to use env variables in config files?

i created a folder in /etc/skel called .arch to hold some wallpapers and icons relating to arch. this ended up in a new users folder as it should. well i use lxde and pcmanfm. what i did was go into the /.config/pcmanfm/LXDE/pcmanfm.conf and change the wallpaper and menu icon path to $HOME/.arch/wallpapers/filename but it didn't seem to work. if i actually put /home/user/.arch/wallpaper/filename it works. is there a way around this? so i can default the new wallpapers to the folder i created?

or should i be putting these in /opt or /usr somewhere?

Offline

#2 2011-10-01 22:25:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: how to use env variables in config files?

Edit: Ah, I get what you mean now. I don't know why it doesn't work using $HOME.

Last edited by karol (2011-10-01 22:27:31)

Offline

#3 2011-10-01 22:45:04

newarch2011
Member
Registered: 2011-09-18
Posts: 41

Re: how to use env variables in config files?

i thought it might have been since for some reason it ended up owned as root when it copied it from /etc/skel but i am not sure how to prevent that issue next time. what should i chown the folder in /etc/skel?

Offline

#4 2011-10-01 23:21:17

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: how to use env variables in config files?

Could you please paste here the exact part of the config file? (Edit: Some time ago I encountered a similar issue and in my case removing the quotation marks solved the problem. Try doing the similar: either use quotes, be it " " or ' ', or remove them and see if this helps.)

Last edited by bohoomil (2011-10-01 23:34:24)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB