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

            Bug ID: 367561
           Summary: "KDEInit could not launch..." error when calling
                    programs through shell scripts
           Product: plasmashell
           Version: 5.5.5
          Platform: openSUSE RPMs
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Application Launcher (Kickoff)
          Assignee: k...@davidedmundson.co.uk
          Reporter: psychon...@nothingisreal.com
                CC: plasma-b...@kde.org

Many KDE applications produce annoying console output, so I wrap them in shell
scripts and put them in some directory in my $PATH, as follows:

$ cat >~/bin/kwrite
#!/bin/bash
/usr/bin/kwrite "$@" >&/dev/null &

This way I can launch kwrite, kate, kontact, etc. from the command line without
worrying about them spewing logging data in my terminal.  However, the scripts
cause errors when I try to launch the corresponding programs from the
Application Menu or when using Alt+F2, KDE throws up an error dialog before
successfully launching the program.  For Alt+F2, the error dialog is as
follows:

Sorry - krunner
KDEInit could not launch '/home/miller/bin/kwrite'

And for the Application Menu, the error dialog is as follows:

Sorry - Plasma
KDEInit could not launch '/home/miller/bin/kwrite'

I am using Plasma 5.5.5 now but the problem previously existed in Plasma 4 (see
Bug 353454).

Reproducible: Always

Steps to Reproduce:
1. Create a shell script that launches (say) kwrite, and put the script in some
directory on your PATH.
2. Press Alt+F2, type "kwrite", and press Enter.  (Or, launch KWrite from the
Application menu.)


Actual Results:  
3. Error dialog appears which says, "KDEInit could not launch
'/home/miller/bin/kwrite'"
4. KWrite is launched.

Expected Results:  
Step 3 above should not happen.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to