Using Zenity in conjuntion with workspace switch command causes segmentation fault in budgie-wm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zenity (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu Release: 17.04 with Budgie-Remix installed
Zenity Version: 3.24.0-0ubuntu1
Wmctrl Version: 1.07-7
When using wmctrl or zenity separately, they both work fine. Put them together however and budgie window manager crashes with a segmentation fault.
This happens using both "wmctrl -s 0" and "xdotool set_desktop 0". They work fine on their own but not in combination with Zenity.
Expected Result: Running the script from workspace 0 switches to workspace 3 and opens firefox. Running again prompts the user to ask if they're sure, then switches back to workspace 0 if they click yes.
Actual Result: Running the script from workspace 0 switches to workspace 3 and opens firefox. Running again prompts the user to ask if they're sure, then budgie window manager crashes with a segmentation fault if they click yes.
Code to replicate:
#!/bin/bash
desktop=
if [ "${desktop}" -eq 0 ] #If workspace == 0
then
wmctrl -s 3 #Switch to workspace 3
firefox --new-window "http://
else
zenity --question --title "Switch Workspace?" --text "Are you sure you wish to return to previous workspace?"
if ! $? #If response Yes
then
wmctrl -s 0 #Switch back
else
fi
fi
Example of working code when `wmctrl` command is used alone:
#!/bin/bash
desktop=
if [ "${desktop}" -eq 0 ] #If workspace == 0
then
wmctrl -s 3 #Switch to workspace 3
firefox --new-window "http://
else
wmctrl -s 0 #Switch back
fi
Log file:
Dec 02 11:17:54 main budgie-
Dec 02 11:17:54 main kernel: budgie-wm[20079]: segfault at 18 ip 00007fa255e8dfc1 sp 00007fff13189710 error 4 in libmutter-
Dec 02 11:17:55 main gnome-session-
Dec 02 11:17:55 main gnome-session[
Dec 02 11:17:55 main ckb.desktop[20137]: QXcbConnection: XCB error: 148 (Unknown), sequence: 423, resource id: 0, major code: 140 (Unknown), minor code: 20
Dec 02 11:17:56 main budgie-wm[21537]: invalid (NULL) pointer instance
Dec 02 11:17:56 main budgie-wm[21537]: g_signal_
summary: |
- Using wmctrl with zenity prompt causes budgie-wm segmentation fault + Switching workspaces via bash with zenity prompt causes budgie-wm + segmentation fault |
description: | updated |
summary: |
- Switching workspaces via bash with zenity prompt causes budgie-wm - segmentation fault + Using Zenity in conjuntion with workspace switch command causes + segmentation fault in budgie-wm |
tags: | added: zesty |
That version is now dead news.softpedia. com/news/ ubuntu- 17-04-zesty- zapus-has- reached- end-of- life-upgrade- to-ubuntu- 17-10-now- 519360. shtml
http://