[kde-linux] opening linked files
Anne Wilson
cannewilson at googlemail.com
Sat Jul 28 08:43:15 UTC 2007
On Saturday 28 July 2007 07:26:32 pol wrote:
> Anne Wilson wrote:
> > If you want the link to always have a particular action, for instance
> > open Konqueror, then look at kcontrol > KDE Components > File
> > Associations. Put the appropriate extension into the search box at the
> > top, and you will get
> > the opportunity to set the required action. In some cases, for instance
> > multimedia files, you may need to set both the General tab and the
> > Embedded tab.
>
> What i need is changing to the directory the file is pointing to, then
> opening that file with the proper file association. Currently, file
> association is ok, but links are opened in the directory where they are.
> I would like to write a script that chances to the dir the actual file is,
> then open it.
> I could associate a script to that file type, that opens the file the usual
> way, if that is a real file or changes to the right directory before
> opening, How to pass the path to the directory to the script?
>
I am not a programmer, so this may be utter nonsense, but here are my
thoughts. The path for any file is in its properties, so it should be
possible to get the path and assign it to a variable, which can then be used
in your script to perform the required act, if examination of the mime-type
passes the test. Does that sound right?
It sounds a simplistic answer to me, so probably it's not as simple as that.
Anne
--
Registered Linux User No.293302 (http://counter.li.org/)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20070728/3ffe80e1/attachment.sig>
More information about the kde-linux
mailing list