[prev in list] [next in list] [prev in thread] [next in thread]
List: kde
Subject: Re: [kde] slow script execution in konqueror
From: pol <linux_milano () yahoo ! it>
Date: 2007-08-02 13:02:31
Message-ID: f8skl8$6p1$1 () sea ! gmane ! org
[Download RAW message or body]
<posted & mailed>
Kevin Krammer wrote:
> Can you try how long it takes to invoke it with kfmclient?
> % kfmclient exec lyx_file
It does not work. The file to be executed is zsh script ('lyxopen', here
included), requiring a filename as a parameter.
As i enter:
kfmclient exec lyxopen <file name>
i get:
kio (KMimeType): WARNING: KServiceType::offers : servicetype <file name>
not found
What is wrong?
According to the manual page, 'kfmclient exec' tries to execute url.
Should it work with shell scripts as well?
Thank you
Pol
--- enc.
lyxopen
#!/bin/zsh
# Open lyx files in their actual directory, rather than in the directory
# of the symbolic link
open="/usr/local/bin/lyx"
inp=$1
if [ ! -h $1 ];then
if [ -f $1 ];then # it is a regular file
$open $inp
elif [ -d $1 ];then
echo $inp " is a directory"
else
echo $inp "not a regular file"
fi
elif [ -h $inp ]; then # it is a symbolic link
file=$(readlink -f "$inp")
fpath=$file:h
fname=$file:t
(cd $fpath && $open $fname)
fi
-----
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic