[Bug 263004] requesting new ability of kwrite application
Hans-Rudi Denzler
hr.denzler at bluewin.ch
Thu Jan 13 12:41:24 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=263004
Hans-Rudi Denzler <hr.denzler at bluewin.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hr.denzler at bluewin.ch
--- Comment #1 from Hans-Rudi Denzler <hr denzler bluewin ch> 2011-01-13 13:41:24 ---
Enable klipper actions
or
you can write your own shell script for starting any command by marking e.g.
'cmd://kwrite'
#! /bin/bash
#
# /home/user/cmd
#
### BEGIN TESTCASES INFO
# > . cmd 'cmd://COMMAND [OPTION | ARG]... [FILE]...'
# cmd://kwrite
# cmd://kwrite z
# cmd://kwrite "hello gaga"
# cmd://kwrite "hello gaga" "a b"
# cmd://kwrite "hello gaga" "a b"
# cmd://konsole --hold -e sh -c "pwd; ls -l cmd; ls -l $(which cmd)"
### END TESTCASES INFO
cd;
commandline=${1#*:\/\/};
statement='parameterArray=('$commandline')';
eval "$statement";
"${parameterArray[@]}" &
klipperrc:
[Action_1]
Automatic=true
Description=Befehl
Number of commands=1
Regexp=^[ \\t]*cmd://.
[Action_1/Command_0]
Commandline[$e]=cmd %s
Description=cmd 'cmd://COMMAND [OPTION | ARG]... [FILE]...'
Enabled=true
Icon=application-x-shellscript
Output=0
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list