我可以使用wmctrl在Ubuntu上运行的葡萄酒关闭窗口吗?
对于上下文:
$ wmctrl -m
Name: compiz
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF
Run Code Online (Sandbox Code Playgroud)
也:
$ wmctrl -l
0x0240a3be -1 mjol N/A
0x02000003 0 mjol Top Expanded Edge Panel
0x0200004c 0 mjol Bottom Expanded Edge Panel
0x01e00024 0 mjol x-nautilus-desktop
0x04800253 0 mjol using wmctrl to close windows - Stack Overflow - Google Chrome
0x03c0c8c3 0 mjol Terminal
0x03c53f25 0 mjol Terminal
0x04400001 0 mjol Untitled - SketchUp
0x04400003 0 mjol Instructor
0x04400009 0 mjol SketchUp
Run Code Online (Sandbox Code Playgroud)
我要关闭的窗口是最后一个:
0x04400009 0 mjol SketchUp
Run Code Online (Sandbox Code Playgroud)
我尝试过以下方法:
$ wmctrl -c "SketchUp"
$ wmctrl -c 0x04400009
$ wmctrl -i 0x04400009
$ wmctrl -c -i 0x04400009
Run Code Online (Sandbox Code Playgroud)
但没有任何作用.
小智 6
也许有点晚了,但现在第一次见到.读取wmctrl的信息,它表示正确的语法是'options'之前actions,并且-i是一个选项,-c一个动作.尝试 wmctrl -i -c 0x04400009