On 31/07/11 21:13, Stan Goodman wrote:
On 07/31/2011 10:16 PM, Mark Goldstein wrote:
On Sun, Jul 31, 2011 at 10:02 PM, Stan Goodman
wrote: On 07/31/2011 08:49 PM, Mark Goldstein wrote:
...
Strange. When I click on icon, I'm getting the dialog box "Select Icon". There I can select any png file (single click) and after pressing "OK" this image replaces previous icon.
That is not what happens here.
Do you mean there is no "Select Icon" dialog? When I click left mouse button once on the icon in "property" dialog, "Select Icon" is opened.
That is what I have been saying. It doesn't happen here.
Alternatively, as Vojtěch wrote, you can find ".desktop" file for your application (in your $HOME/Desktop directory) and edit "Icon" line there changing it to full path to your image.
Here is the complete content of the file ~/Desktop/genj (the changed neame);
cd ~/bin/javaapps/genj export CLASSPATH=./lib/genj.jar:./lib/jhbasic.jar java genj.app.App
Changing the filename back again and making the link, causes the link to be an executable file that starts the application. Its content is now:
cd ~/bin/javaapps/genj export CLASSPATH=./lib/genj.jar:./lib/jhbasic.jar java genj.app.App
Hard to see a difference. This file doesn't resemble at all the other
files; it doesn't even begin with the line [Desktop Entry] as do all the others. Why does the link work at all? And if it works, why doesn't it work when I change the name? IOW, where is the gremlin? If I need to construct a proper file, what exactly must it contain? Vojtěch says it doesn't need everything in his model, which is nice, but what exactly are the essentials?
Since this file was made by the system, without any request for input from me, why is it defective to the point of lacking all form? How could I have avoided this?
Perhaps the behavior is related to the fact that the name of the exec file has an additional dot:<~/Desktop/genj.sh.desktop>. I can change that, of course, it's just a historical relic.
No, this doesn't help. Changing the name of genj.sh to genj (there was no other file with that name), and writing a new link: ln genj ~/Desktop/genj does make a new icon in Desktop Folder, but it is a text file, despite that fact that its permissions are rwx for everybody. I do not understand this, perhaps someone can explain it.
Don't change the file name. Open it with some text editor (I opened it using mc F4 key).
I've been using vim.
This file should have a number of lines, one of them should look like Icon=xxxxxx
This is free-form? E.g, the short filename less the extension?
Change xxxxx to the full path to your image (like /home/user/pic.png) If there is no such line, I guess you can just add it.
Anything else that must be present?
What you have there is a shell script, not a desktop application link. Which is why you can't change the icon, or place it in the panel, etc. 1) Move ~/Desktop/genj shell script to ~/bin or some other suitable location off the desktop. 2) In your ~/Desktop folder, right click and select Create New -> Link to Application 3) Under the 'Application' tab, next to 'Command', browse to where you moved the genj shell script to 4) Under the 'Advanced Options', check 'Run in terminal' 5) Fill in name, comments etc as you see fit When when you click this file (it should show up on the desktop now too), genj should launch as before. But now if you open the properties of this file you will be able to change the icon via the methods already described. You should also be able to drag-n-drop this icon to the panel (with widgets unlocked) or anywhere else you want. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org