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

            Bug ID: 469328
           Summary: Applications launched from Hotkeys/Shortcuts are
                    missing standard-streams (stdin, stdout, stderr) in
                    Wayland
    Classification: Applications
           Product: systemsettings
           Version: 5.27.4
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_khotkeys
          Assignee: k...@michael-jansen.biz
          Reporter: qemxa2jneu.bugs.kde....@ruekov.eu
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY

When an application is launched from a hotkey in Wayland (havent tested X11),
it doesnt have stdin, stdout, stderr attached which can result in problems when
these applications try to use them for e.g. logging.

This problem was noticed when using wl-clipboard which works when running it
from a script, but doesnt when running from a shortcut (e.g. as part of a
script)

STEPS TO REPRODUCE with wl-clipboard
1. Write script which uses wl-copy (e.g. wl-copy "foobar")
2. Add script as shortcut
3. Launch Keybind (press it!)
4. Check clipboard content

GENERAL STEPS TO REPRODUCE
1. Write script to test for stdin/stdout/stderr
# Test for stdout
if [ -t 1 ]; then
  echo "stdout exists" >> /tmp/output
else
  echo "stdout does not exist" > /tmp/output
fi

2. Launch directly and check /tmp/output
stdout exists

3. Launch via shortcut / keybind and check /tmp/output
stdout does not exist


EXPECTED RESULT
The standard streams should be connected e.g. stdout & stderr to system journal
or at least /dev/null

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.4
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I assume this problem also exists in X11, but havent tested it.

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

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

Reply via email to