Bug 409879 - xdotool error KDEInit could not launch
Summary: xdotool error KDEInit could not launch
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kinit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.14.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2019-07-16 23:16 UTC by ameetpm
Modified: 2023-08-02 03:44 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
nate: Usability-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ameetpm 2019-07-16 23:16:32 UTC
SUMMARY

xdotool script gives error

STEPS TO REPRODUCE
1. create a script like: #! /bin/bash

xdotool key ALT+F4
2. create a launcher in the panel pointing to this script
3. try to close windows by clicking on the launcher - u get error "KDEInit could not launch '/home/a/close.sh'"

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 ameetpm 2019-07-16 23:55:46 UTC
on debian buster with the stock plasma version
Comment 2 ameetpm 2019-07-17 02:57:55 UTC
the script is executable, the action of closing the window completes but there is the error described earlier
Comment 3 ameetpm 2019-07-17 22:34:13 UTC
surprisingly the error is only seen if the earlier mentioned launcher is added to the top panel and then launched.
it works as expected when added to bottom panel.
nothing of significance in journalctl or syslog or messages
Comment 4 David Edmundson 2019-07-18 09:59:44 UTC
Can you confirm how you "created a launcher" please
Comment 5 ameetpm 2019-07-18 10:15:44 UTC
Hi David, thanks for your reply. I will describe in detail below:

1. Add a top panel, empty one
2. Add widget > add quick launch widget
3. Then add app > browse > select the xdotool script close.sh
4. Select is executable

then when I open any app and click on the above created launcher, the app closes but i get error on the desktop ""KDEInit could not launch '/home/a/close.sh'". But surprisingly the launcher is able to close that app's window.

if i add the same launcher on the bottom panel then there is no issue. If I add another launcher pointing to the same script on the top panel then there is no error either.

It appears that the error is seen only when there is a single launcher on the top panel pointing to the script. I then even changed the script and directly wrote in the command box of the launcher's properties "xdotool key ALT+F4" then I get different error viz. "KDEInit could not launch '/usr/bin/xdotool'"

please let me know if you need any other information. thanks for taking a look. its nothing major, I know, but still thought its best to report as I could not find anything in logs anywhere.
Comment 6 ameetpm 2019-07-27 06:09:00 UTC
r u able to replicate it?
Comment 7 Christoph Cullmann 2023-07-03 21:42:46 UTC
Can you reproduce that with a recent release?
Comment 8 Bug Janitor Service 2023-07-18 03:45:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-08-02 03:44:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!