[openbox] Execute Action Not Forked (Wrong PPID)
sunnycemetery at gmail.com
sunnycemetery at gmail.com
Wed Aug 7 01:12:29 EDT 2019
Hello. Here are steps to reproduce something that I really don't
understand:
• Put obForkTest in your home directory.
• Put the two lines in the attached rc.xml into the <keyboard> section
of your real rc.xml.
• Restart Openbox and try out the two keyboard shortcuts.
For me, the W-o shortcut results in a chromium window that stays open until
I close it. The S-W-o shortcut, however, results in a chromium window that
closes after 10 seconds. The attached process trees provide a hint: For
the W-o shortcut, chromium is correctly backgrounded and given a PPID of 1.
On the other hand, for the S-W-o shortcut, the xterm instance is assigned
a PPID of openbox (1116), and chromium is never backgrounded at all.
Why?
This is a problem because I have created a similar hotkey command, but
its spawned programs are immediately killed!
(For testing purposes, feel free to substitute appropriate programs for
xterm and chromium. I certainly did.)
Thank you.
--
■ openbox --version
Openbox 3.6.1
著作権 (c) 2004 Mikael Magnusson
著作権 (c) 2002 Dana Jansens
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.
■ uname -srvmo
Linux 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
-------------- next part --------------
#!/usr/bin/env -S bash --
chromium &
sleep 10
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc.xml
Type: application/xml
Size: 208 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20190807/f44955db/attachment.xml>
-------------- next part --------------
user 29206 1 72 00:17 tty1 00:00:09 /usr/lib/chromium-browser/chromium-browser-v7 --enable-pinch
user 29218 29206 1 00:17 tty1 00:00:00 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote
user 29220 29218 0 00:17 tty1 00:00:00 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote
user 29327 29220 23 00:17 tty1 00:00:02 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 29339 29220 28 00:17 tty1 00:00:02 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 29419 29220 13 00:17 tty1 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 29445 29220 13 00:17 tty1 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 29242 29206 16 00:17 tty1 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=gpu-process
user 29246 29206 9 00:17 tty1 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=utility
-------------- next part --------------
root 991 1 0 Aug06 tty1 00:00:00 /bin/login -p --
user 1001 991 0 Aug06 tty1 00:00:00 -bash
user 1083 1001 0 Aug06 tty1 00:00:00 /bin/sh /usr/bin/startx
user 1105 1083 0 Aug06 tty1 00:00:00 xinit /home/user/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.CEBTMaoh4V
root 1106 1105 4 Aug06 tty1 00:24:19 /usr/lib/xorg/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.CEBTMaoh4V
user 1116 1105 0 Aug06 tty1 00:00:36 /usr/bin/openbox --sm-save-file /home/user/.cache/openbox/sessions/1565117420-1116-1339771662.obs --sm-no-load
user 30287 1116 3 00:20 tty1 00:00:00 xterm -e /home/user/obForkTest
user 30288 30287 0 00:20 pts/15 00:00:00 bash -- /home/user/obForkTest
user 30289 30288 76 00:20 pts/15 00:00:05 /usr/lib/chromium-browser/chromium-browser-v7 --enable-pinch
user 30301 30289 3 00:20 pts/15 00:00:00 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote
user 30303 30301 0 00:20 pts/15 00:00:00 /usr/lib/chromium-browser/chromium-browser-v7 --type=zygote
user 30405 30303 44 00:20 pts/15 00:00:02 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 30426 30303 60 00:20 pts/15 00:00:02 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 30460 30303 23 00:20 pts/15 00:00:00 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 30480 30303 25 00:20 pts/15 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=renderer
user 30325 30289 32 00:20 pts/15 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=gpu-process
user 30328 30289 34 00:20 pts/15 00:00:01 /usr/lib/chromium-browser/chromium-browser-v7 --type=utility
user 30290 30288 0 00:20 pts/15 00:00:00 sleep 10
More information about the openbox
mailing list