On 07/31/2011 10:16 PM, Mark Goldstein wrote:
On Sun, Jul 31, 2011 at 10:02 PM, Stan Goodman <stan.goodman@hashkedim.com> 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 <filename.desktop> 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? -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org