script to move desktop icon to desktop/escritorio, how to know language?
Hello,
when making a script which puts a launcher to the desktop we don't know which language is installed on the workstation. in english ~/Desktop in spanish ~/Escritorio and so on It is possible to get information about where the 'Desktop' is? thanks |
Usually this is set up in ~/.config/user-dirs.dirs
Using 'grep' you can get your exact path. Or use this variable, like cp 'your launcher' $XDG_DESKTOP_DIR |
i do not have the envar you are talking about, but i do have ~/.config/user-dirs.dirs
many thanks. |
Well, may be it's not the best way, but it works for me:
Code:
grep XDG_DESKTOP_DIR ~/.config/user-dirs.dirs | sed 's/.*=//g' |
All times are GMT -5. The time now is 02:41 AM. |