<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 25, 2013 6:57 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 25, 2013 6:57 pm</pubDate>
  <lastBuildDate>Sat May 25, 2013 6:57 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2296#2296</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu May 26, 2005 10:03 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      It is definitely intended for scripting use as well and development of programs using IPC. Why else would kdcop have options to show the Bash and Python equivalents of any commands you try?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2296#2296</comments>
                                        <author>nelz</author>
                                        <pubDate>Thu May 26, 2005 10:03 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2296#2296</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2289#2289</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu May 26, 2005 3:17 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      hmmm, so ... very interesting ... wonder what it stands for ... cop ----- [co]munication [p]rotocol&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I will assume it's a kind of inter app comunication system. I will have to experiment a bit more there. Now that i have a few more Mhz to work with, kde has come to make a bit more sense lately (grin). Better update though i think (anothergrin). I also managed to put an extra hide/show tag on the task bar too. For no particular reason, it will probably be still there on the next visit, i bet. But ... are you suggesting that it can be used with shell scripts ... in some way.&lt;br /&gt;
&lt;br /&gt;
I get the feeling it's more ment to be used as a developers tool, of soughts, after which the relevent code would be implemented in source. Rather than as an actual desktop/user facility. But, i've only just glanced at it.&lt;br /&gt;
&lt;br /&gt;
Are there many more interesting kde things like that, hiding away there somewhere. Some really good stuff can be all to often, just sitting under a persons nose, and not be noticed at times.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -|-&amp;nbsp; &amp;nbsp;If the system is the answer, then the question&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-|-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2289#2289</comments>
                                        <author>jjmac</author>
                                        <pubDate>Thu May 26, 2005 3:17 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2289#2289</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2257#2257</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed May 25, 2005 9:11 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Browse through the options in kdcop. it shows you what is available for each window and the output of each command. you need something like konqueror-mainwindow.currentURL for the active konqueror window window.&lt;br /&gt;
&lt;br /&gt;
I haven't been able to find much in the way of decent user documentation for dcop, but kdcop makes trial and error easy.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2257#2257</comments>
                                        <author>nelz</author>
                                        <pubDate>Wed May 25, 2005 9:11 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2257#2257</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2174#2174</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon May 23, 2005 11:02 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Appears to be an interproccess comunication facility. The documentation in knoppixs' kde 3.1.5 is non-existent, so there wasn't much explanation there. The man pages were just holding pages. Though, i would expect the kde site, or a kdcop site would have better documentation.&lt;br /&gt;
&lt;br /&gt;
But, ... how would you apply that, to retrieving something like the 'pwd', when used in a script ?&lt;br /&gt;
&lt;br /&gt;
I did manage to invoke the 'logout' facility with it &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;#58;-&amp;nbsp; If the system is the answer, then the question &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;#58;-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2174#2174</comments>
                                        <author>jjmac</author>
                                        <pubDate>Mon May 23, 2005 11:02 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2174#2174</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2068#2068</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri May 20, 2005 2:28 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      [quote=&quot;jjmac&quot;]Meaning, of course, greping the 'source'. There must be a function that retrieves the current directory path somewhere, for the current directory in the managers window. Especially if the filemanager allows for a shell window to be invoked for that window/directory via a button click.&amp;lt;/quote]&lt;br /&gt;
&lt;br /&gt;
You can do that in KDE with dcop. I've used this in scripts that I run from a shell that act on the current directory displayed in Konqueror.&lt;br /&gt;
&lt;br /&gt;
Run kdcop and you'll be able to view and experiment with the options.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2068#2068</comments>
                                        <author>nelz</author>
                                        <pubDate>Fri May 20, 2005 2:28 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2068#2068</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2066#2066</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri May 20, 2005 2:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &amp;gt;&amp;gt;&lt;br /&gt;
 idea of greping the filemanager to trace a var is an interesting possibillity&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Meaning, of course, greping the 'source'. There must be a function that retrieves the current directory path somewhere, for the current directory in the managers window. Especially if the filemanager allows for a shell window to be invoked for that window/directory via a button click.&lt;br /&gt;
&lt;br /&gt;
From there it depends on how 'intuitive' the developer has made their function names. As that would be the easiest thing to grep on. Different people seem to have different ideas on what makes sense when it comes to naming chemes though. Not impossible, but it can turn into a full weekends work.&lt;br /&gt;
&lt;br /&gt;
I use a manager called 'filerunner' written in tcl, but of course konqueror would be c++/c being kde. tcl is about as straight forward in its' naming schemes as a politicians answer to a fair question &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;, ... it can be a real pain trying to trace anything down in it. So it would all really just depend on that aspect, as to how much of a hassel it turned into.&lt;br /&gt;
&lt;br /&gt;
Though ...  If that proved to work ... i was thinking you could just add some code with  in that relevent function to open a file in your HOME directory, and then write that path to it, then close the file. It would then happen each time you do a directory change in the manager. Then recompile the manager with a modified name so that it could be used with out clashing with the original.&lt;br /&gt;
&lt;br /&gt;
It could well be a lot of trouble to go to, but, then again ... there is a lot of mischief/things that could be gotten upto with that &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;.&lt;br /&gt;
&lt;br /&gt;
A desktop icon, or any appropriate icon, if it was to reference a script that returned a 'cat' on that path file ... it could do an immediate 'cd' to where ever it happens to point.&lt;br /&gt;
&lt;br /&gt;
The more i think on it, ... it could be a lot of trouble to go to.  I think you were saying that you would have an icon in the actual directory concerned. If so, couldn't that reference a symlink back to a common script. That works when executing a script with a symlink directly, from a different directory location. But, having icons in different specific directories does seem to kill the 'magic trick' aspect of it all &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;. So maybe the 'edit the source' angle may be worth it.&lt;br /&gt;
&lt;br /&gt;
Then again,  why not teach them the cli instead (grin).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;#58;-&amp;nbsp; If the system is the answer, then the question &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;#58;-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2066#2066</comments>
                                        <author>jjmac</author>
                                        <pubDate>Fri May 20, 2005 2:10 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2066#2066</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2022#2022</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=100'&gt;Lancer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu May 19, 2005 12:49 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;jjmac wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Aaha, i see what your saying. The pwd problem was solved using a script in the same directory. Not exactly what you wanted. And if a different mime type is cumbersome, then i guess my grep idea would be over kill &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Not entirely overkill. By &quot;cumbersome&quot; I meant it would add too many unneccesary filetypes to the system for what is really a trivial set of class exercises, and these would have to be individually set for each individual computer on the network.&lt;br /&gt;
&lt;br /&gt;
Your idea of greping the filemanager to trace a var is an interesting possibillity, except that I don;t imagine I'll find the var, if it exists, in a while... or even whether the correct var would be referenced in the file manager at all.another method might be to check the location of the current active nautilus window. Again - it's lack of knowledge of the file manager variables which prevents me for gettign this.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2022#2022</comments>
                                        <author>Lancer</author>
                                        <pubDate>Thu May 19, 2005 12:49 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2022#2022</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=2018#2018</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu May 19, 2005 12:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Aaha, i see what your saying. The pwd problem was solved using a script in the same directory. Not exactly what you wanted. And if a different mime type is cumbersome, then i guess my grep idea would be over kill &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
By all appearances, KDE cannot do truely customisable icons like Gnome can. Unless, the icon is a link (desktop link). These can be customised.&lt;br /&gt;
However, a scipt is run from such a link gives the original script location, not the location of the desktop shortcut icon which was clicked to run the script.&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Just running a script placed in ~/bin via a standard soft link from various different directories ...&lt;br /&gt;
&lt;br /&gt;
A script placed in ~/bin&lt;br /&gt;
-------------------------------------&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
echo &quot;prog name is   :  $0&quot;&lt;br /&gt;
echo &quot;current dir is   :  $(pwd)&quot;&lt;br /&gt;
------------------------------------&lt;br /&gt;
&lt;br /&gt;
When run from a term window (rxvt), does return the links name and the directory path the link is in. Would it be possible to give a standard link an icon.&lt;br /&gt;
&lt;br /&gt;
A really interesting problem though, hope it works out. What about a kde board ?, or a developers list ?&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;#58;-&amp;nbsp; If the system is the answer, then the question &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;#58;-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=2018#2018</comments>
                                        <author>jjmac</author>
                                        <pubDate>Thu May 19, 2005 12:19 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=2018#2018</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1996#1996</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=100'&gt;Lancer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed May 18, 2005 7:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I'd considered a mime type idea but found it was a bit impractical because of the need to clutter my school systems with bogus mime types any time I wanted to make new &quot;active icon&quot; theme sets (e.g: file names ending in .icn1 .icn2 .icn3 .icn4 etc). I wanted to avoid where possible using file name extensions to identify mime type as well, simple calling an icon &quot;Harry&quot;. Also, as there are a dozen or so school computers, setting up each one would be a real pain. I'd like to have something where I could just FTP the icons around into everyone's /home dirs for whatever exercise we are doing.&lt;br /&gt;
&lt;br /&gt;
Therefore, I did not actually try the mime-type... just wondering, would &quot;make executable&quot;  get the icons to work for you &lt;span style=&quot;font-weight: bold&quot;&gt;Flea&lt;/span&gt;? If not, perhaps set it to open with /bin/bash?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1996#1996</comments>
                                        <author>Lancer</author>
                                        <pubDate>Wed May 18, 2005 7:55 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1996#1996</guid>
                                      </item>
                                      <item>
                                        <title>Re: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1982#1982</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=142'&gt;Flea&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed May 18, 2005 1:05 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I suppose you could add a new mime-type in 'KDE Kontrol' that would allow you to use a different icon. Of course you would need a new mime-type for every different type of script you wanted.&lt;br /&gt;
&lt;br /&gt;
I had a go at doing this myself, and it works for the icon. Only I can't seem to get the new type (a .cm file) to execute it just pops up the 'open with' dialogue  &lt;img src=&quot;images/smiles/icon_confused.gif&quot; alt=&quot;Confused&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;
Just an idea, hope this helps.&lt;br /&gt;
&lt;br /&gt;
Dave.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1982#1982</comments>
                                        <author>Flea</author>
                                        <pubDate>Wed May 18, 2005 1:05 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1982#1982</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1980#1980</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=100'&gt;Lancer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed May 18, 2005 12:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      What I want to do is very simple. I want to create an icon, let's say a smiling face icon. When the user clicks the icon, it pops up a message saying &quot;Hi there! I am in directory &amp;lt;whatever directory the icon happens to be in&amp;gt;&quot;. If the user drags the icon to a new directory (move here) then clicking the icon of course gives the new location of where the icon is situated.&lt;br /&gt;
&lt;br /&gt;
This is easy to do in Gnome.&lt;br /&gt;
&lt;br /&gt;
My making the before mentioned shell script&amp;#058;&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#!/bin/bash&lt;br /&gt;
xterm -geometry 50x3 -bg black -fg green +sb -T &amp;quot;You clicked me&amp;quot; -hold -e echo &amp;quot;I am in directory $&amp;#40;dirname $0&amp;#41;&amp;quot;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Next right click over the icon of the above shell script and choose &quot;properties&quot; from the drop down menu that appears. Hit the &quot;Select custom icon&quot; button under the &quot;Basic&quot; Tab of the dialogue box that appears. finally select a suitable smiling face.&lt;br /&gt;
&lt;br /&gt;
The result leaves you with a smiling face icon which, when clicked, runs the shell script which flashes up the message about which directory the icon is in.&lt;br /&gt;
&lt;br /&gt;
All good so far.&lt;br /&gt;
&lt;br /&gt;
However - can KDE do the same thing? I can get the same script to work when clicked for sure. However what I can't seem to do is make the icon change appearance from the default for &quot;executable file&quot;... not without changing icons for it's global type and I don't want to do that, as the icon is only a one off and I may want to make other icons with different faces.&lt;br /&gt;
&lt;br /&gt;
By all appearances, KDE cannot do truely customisable icons like Gnome can. Unless, the icon is a link (desktop link). These can be customised. However, a scipt is run from such a link gives the original script location, not the location of the desktop shortcut icon which was clicked to run the script. I don't know how to trap that event.&lt;br /&gt;
&lt;br /&gt;
So hey... I did it for Gnome. How do I do the same for KDE?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1980#1980</comments>
                                        <author>Lancer</author>
                                        <pubDate>Wed May 18, 2005 12:10 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1980#1980</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1972#1972</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed May 18, 2005 10:35 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Just to clarify what i mean above.&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
I guess another way would be to actually move a shell script around which itself opens a terminal like so... &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Code:	&lt;br /&gt;
#!/bin/bash &lt;br /&gt;
xterm -geometry 50x3 -bg black -fg green +sb -T &quot;You clicked me&quot; -hold -e echo &quot;I am in directory $(dirname $0)&quot;	&lt;br /&gt;
[/code]&lt;br /&gt;
&lt;br /&gt;
...this works  but has the following disadvantage:&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will still gives you the directory of the script.&lt;br /&gt;
&lt;br /&gt;
A long way round solution ...&lt;br /&gt;
&lt;br /&gt;
Grep through the file managers source and look for the function that retrives the current directory, as reflected in the file managers window.&lt;br /&gt;
&lt;br /&gt;
What ever variable is used there ... use it to write that path to a file in your own HOME directory. Overwriting it each time.&lt;br /&gt;
Then, have the script retrieve the saved string contained in it.&lt;br /&gt;
&lt;br /&gt;
Recompile the manager with an altered name, so as the extra burden of continuously writing to the file wont hold you down for ordinary usage.&lt;br /&gt;
&lt;br /&gt;
I know ... greping through source can be a pain, but ... is there really another way to overcome the problem of the icon and the script being in a different working directories as to the file managers navigation.&lt;br /&gt;
&lt;br /&gt;
I must be missing your point somewhere though, as part of your original comment ...&lt;br /&gt;
&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
Basically, wherever the icon is placed, when clicked on in Konqueror, it should launch a terminal saying the directory it is in&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i find a bit confusing ...&lt;br /&gt;
&lt;br /&gt;
How can you get a desktop icon to follow a filemanager/browsers tree navigation. ???&lt;br /&gt;
&lt;br /&gt;
How do you get the root window in a file manager. Can kde really do that (grin) wow ...&lt;br /&gt;
&lt;br /&gt;
sorry if i've been wasting your time there &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;, it just seemed alike a really interesting delima, from my interpretation ... which may well be missing your point. As i get the felling that your suggesting that the icon should change directories as you do. Doesn't solve the script being where ever it is ... but i cant see how the icon could travel about. Unless its the directory icon ... hmmm, i guess that must be what you mean there.&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;-|-&amp;nbsp; If the system is the answer, then the question&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -|-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1972#1972</comments>
                                        <author>jjmac</author>
                                        <pubDate>Wed May 18, 2005 10:35 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1972#1972</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1912#1912</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=133'&gt;jjmac&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue May 17, 2005 2:25 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &amp;gt;&amp;gt;&lt;br /&gt;
The trick here is in transfering the location of the icon itself into the script. I can get it to work in Gnome by setting an individual icon to the shell script which launches the an xterm (the script was the last one I showed). However, this will not work under KDE, as there appears to be no sensible way of assigning a custom icon to an individual script&lt;br /&gt;
&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yes, i can see what you mean... Perl being what it is, i just though it may well have some magic along those lines hidden away  somewhere.&lt;br /&gt;
&lt;br /&gt;
Tricky.  But then,...  is it really a good idea to have icons following you around your fs to easily. What if your in a sensitive area, then so will it, opening up potential problems. Especially if for some bug, it decided to stay there..&lt;br /&gt;
&lt;br /&gt;
Maybe a seperate menu branch in the filemanager might be more practical &lt;br /&gt;
&lt;br /&gt;
Maybe ... if you could get the filemanager to write to a file in your $HOME directory, reflecting directory changes.  Then ... if the icon can source that file first, then do a cd based on the path string found there ... By sourcing, i mean, using the &quot;Exec=' config option in the above file example.&lt;br /&gt;
&lt;br /&gt;
 ... but as you say, show an example, hmmm. Some ideas at least &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Appended:&lt;br /&gt;
&lt;br /&gt;
After a few tests ...&lt;br /&gt;
&lt;br /&gt;
I could get it to invoke an rxvt window, but if i tryed to get it to do more, such as with the '-e' switch, or using '&amp;amp;&amp;amp;', even trying to pipe 'ls' to 'rxvt' (grin), all that happened was that the shell would flash open .. then close.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I think it boils down to the icon belonging to the original session shell that the wm itself is bound to. Rather than being a child of that.&lt;br /&gt;
&lt;br /&gt;
If it could be made to have it's own shell when it is created ... then there might be a chance to move it about ?!&lt;br /&gt;
&lt;br /&gt;
I think thats basically what was hapening with your gnome test.&lt;br /&gt;
&lt;br /&gt;
jm&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;nbsp; -&amp;#58;-&amp;nbsp; If the system is the answer, then the question&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;must have been really stupid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;#58;-&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1912#1912</comments>
                                        <author>jjmac</author>
                                        <pubDate>Tue May 17, 2005 2:25 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1912#1912</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1909#1909</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon May 16, 2005 11:31 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I don't see how the language used would make any difference.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1909#1909</comments>
                                        <author>nelz</author>
                                        <pubDate>Mon May 16, 2005 11:31 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1909#1909</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Tricky KDE icon</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=1899#1899</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=100'&gt;Lancer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon May 16, 2005 7:28 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Last post was me. &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
(Sets mode to 'notify')</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=1899#1899</comments>
                                        <author>Lancer</author>
                                        <pubDate>Mon May 16, 2005 7:28 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=1899#1899</guid>
                                      </item></channel></rss>