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

--- Comment #17 from the SAG <stehen.sel...@gmail.com> ---
I am looking at the source code from https://github.com/KDE/kinit
I looked at the kdeinit source code and the offending routine is in
kinit_win.cpp, launch()

// internal launch function
    387 int launch(const QString &cmd)
    388 {
    389     QProcess *proc = new QProcess();
    390     proc->start(cmd);
    391     proc->waitForStarted();
    392     startedProcesses << proc;
    393     _PROCESS_INFORMATION *_pid = proc->pid();
    394     int pid = _pid ? _pid->dwProcessId : 0;
    395     if (verbose) {
    396         fprintf(stderr, "%s",
proc->readAllStandardError().constData());
    397         fprintf(stderr, "%s",
proc->readAllStandardOutput().constData());
    398     }
    399     if (pid) {
    400         if (verbose) {
    401             fprintf(stderr, "kdeinit5: Launched %s, pid = %ld\n",
qPrintable(cmd), (long) pid);
    402         }
    403     } else {
    404         if (verbose) {
    405             fprintf(stderr, "kdeinit5: could not launch %s,
exiting\n", qPrintable(cmd));
    406         }
    407     }
    408     return pid;
    409 }


It appears that the pid being returned from the pointer _pid is always
zero.  Why that is,
I have no idea.   Unfortunately, I am not set up right now to investigate
further.

Hope this helps.

   Stephen



On Sun, Dec 22, 2019 at 11:13 PM moose goose <stehen.sel...@gmail.com>
wrote:

> yes, the script is executable.
>
> And this happens with *any* script I put into the quicklauncher.
>
>   Stephen
>
> On Sun, Dec 22, 2019 at 4:26 PM David Edmundson <bugzilla_nore...@kde.org>
> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=181477
>>
>> David Edmundson <k...@davidedmundson.co.uk> changed:
>>
>>            What    |Removed                     |Added
>>
>> ----------------------------------------------------------------------------
>>              Status|REOPENED                    |NEEDSINFO
>>                  CC|                            |k...@davidedmundson.co.uk
>>          Resolution|---                         |WAITINGFORINFO
>>
>> --- Comment #15 from David Edmundson <k...@davidedmundson.co.uk> ---
>> Is that script executable?
>>
>> xdg-open ~/.local/share/applications/do-mouse.desktop
>>
>> might give more useful output
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>
>
>
> --
> +++ Maranatha!!! +++
>
>   Why do all significant things come in groups of 3 ?  the Holy Trinity
> manifested....
>

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

Reply via email to