Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Many posts tell you to copy files from /usr/share/applications to your home directory.

Well, unfortunately that does not work for non-Ubuntu stuff.

Can anybody show me how to add this

  xterm -bg black -fg white -fn 10x20

to my XTerm icon?

share|improve this question
    
Can you clarify what you mean "does not work for non-Ubuntu stuff" exactly? If you copy the xterm.desktop from /usr/share/applications to ~/.local/share/applications/ and edit the Exec= line in the newly copied file to change the parameters, it should work. –  dobey Aug 15 '12 at 16:34
    
Simple: There isn't a file to copy... –  ASan Aug 15 '12 at 16:39
add comment

2 Answers

Another possibility is to launch "Main Menu" from Dash, find the Terminal app and modify the command.

  1. Press the windows key and type "menu"
  2. Open "Main Menu"
  3. Under "Accessories" click "New Item"
  4. Give it a description and type the xterm command with parameters as desired.
share|improve this answer
add comment

The file you are searching for under /usr/share/applications is debian-xterm.desktop.

Anyway, you don't actually need to copy this to your home directory, unless you don't have (or you cannot gain) the rights in order to write to this file.

If you have the rights to write to that file, open a terminal (or hit Alt+F2) and give:

gksudo gedit /usr/share/applications/debian-xterm.desktop

Once gedit opens, head to the Exec field and place, instead of xterm, your entry: xterm -bg black -fg white -fn 10x20. Save the file and you are done.

If you don't (or you cannot gain) write permissions there, copy that file to your home directory (~/.local/share/applications/), edit it there, and you are done!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.