[Konsole-devel] [Bug 225563] clicking on a shell script doesn't run it

Jekyll Wu adaptee at gmail.com
Sun Jul 24 10:06:07 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=225563


Jekyll Wu <adaptee at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adaptee at gmail.com




--- Comment #8 from Jekyll Wu <adaptee gmail com>  2011-07-24 10:06:07 ---
This is definitely not a bug of konsole.

If konsole is invoked but fails to show up and run that script, that is
konsole's bug. But if konsole never got invoked by dolphin, it's not konsole's
fault.

I have update my konsole.desktop as described in comment #1 and set konsole as
default terminal emulator in systemsettings. And here is the proof :

1). choose a long-running or never-ending shell script, click it in dolphin.
Nothing happens. But if you use ps command, you will find that script is
running and its parent is dolphin. In my example, it shows like this :

USER       PID  PPID %CPU %MEM    VSZ   RSS TTY      STAT POL WCHAN  START  
TIME COMMAND
whodare  11699 28087  9.2  1.6 226648 51728 ?        sl   ts  poll_s 17:29  
0:02 kdeinit4: dolphin [kdeinit] --icon system-file-manager -caption dolphin
whodare  11731 11699  0.0  0.0   6640  1312 ?        s    ts  wait   17:29  
0:00 /bin/bash /home/whodare/bin/crontab/pull-source-code.sh

  That implies dolphin never invokes konsole, but invokes the script itself
instead .

2). another proof which looks more convincing:

  a). write a simple wrapper for konsole and save it as ~/bin/konsole
(executable, of course), like this :

    #!/bin/bash
    echo /usr/bin/konsole --nofork $@ >> ~/konsole.log
    /usr/bin/konsole --nofork $@

  2). start dolphin by 'path=$HOME/bin:$PATH dolphin', and click some shell
script.

  3). nothing was written into ~/konsole.log, because ~/bin/konsole was not
invoked. 

So, this should not be a bug of konsole.

-- 
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 konsole-devel mailing list