Joined: 29 Mar 2006 Posts: 6415 Location: Valåmoen, Norway
Posted: Wed 28 Dec 2016, 20:14 Post subject:
Bash/gtkdialog: function is stealing focus? [SOLVED] Subject description: Help required
This test script shows my issue:
The function is run as a background process, but still it prevents the code to reach the end (gxmessage).
How can I get the Exit-value from the main gui while the function-gui shows? I can not use the launch/close commands in gtkdialog.
<text><label>Exit value is correct if pressing the button below. Opening another window corrupts the Exit value</label></text>
<label>My exit value is: Button1</label>
<label>Open another window corrupts the exit value</label>
for STATEMENTS in $(gtkdialog -p XML); do
gxmessage "Exit value is: $EXIT"
_________________ Stardust resources Last edited by zigbert on Thu 29 Dec 2016, 05:02; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum