LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-10-2009, 07:18 AM   #1
permalac
Member
 
Registered: Jul 2007
Location: Barcelona
Posts: 115

Rep: Reputation: 16
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
 
Old 01-10-2009, 07:54 AM   #2
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
Posts: 132

Rep: Reputation: 17
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
 
Old 01-10-2009, 09:23 AM   #3
permalac
Member
 
Registered: Jul 2007
Location: Barcelona
Posts: 115

Original Poster
Rep: Reputation: 16
i do not have the envar you are talking about, but i do have ~/.config/user-dirs.dirs

many thanks.
 
Old 01-10-2009, 09:49 AM   #4
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
Posts: 132

Rep: Reputation: 17
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'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 08:48 PM
Desktop Icon dpsource Linux - Software 1 10-24-2006 12:42 PM
How to create a desktop icon to open a script in aterm? lantian2004 DamnSmallLinux 5 05-31-2006 05:15 AM
Launch a ncftpput script clicking on desktop icon jmanjohn61 Linux - Newbie 3 03-08-2005 01:04 AM
Desktop Icon csosa Linux - Software 2 09-23-2003 04:16 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration