Re: [kde] slow script execution in konqueror
- From: pol <linux_milano@xxxxxxxx>
- Date: Thu, 02 Aug 2007 15:02:31 +0200
<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.
- Follow-Ups:
- Re: [kde] slow script execution in konqueror
- From: Kevin Krammer
- Re: [kde] slow script execution in konqueror
- References:
- [kde] slow script execution in konqueror
- From: pol
- Re: [kde] slow script execution in konqueror
- From: Kevin Krammer
- [kde] slow script execution in konqueror
- Prev by Date: Re: [kde] How to tell konqueror to cache files locally before executing external programs?
- Next by Date: Re: [kde] extreme Lag when editing text box in Konqueror
- Previous by thread: Re: [kde] slow script execution in konqueror
- Next by thread: Re: [kde] slow script execution in konqueror
- Index(es):