Code:
['0x03600025', '0', 'gedit.Gedit', 'jon', 'launch-restore (/usr/local/bin) - gedit\n']
* []
Traceback (most recent call last):
File "/usr/local/bin/launch-restore", line 257, in <module>
Counts, IDData, DeskData, MinData, CurDesktop, CurWin, StackOrder = GetWinInfo(Match, MatchClass)
File "/usr/local/bin/launch-restore", line 110, in GetWinInfo
Hidden = '_NET_WM_STATE_HIDDEN' in os.popen('xprop -id %s | nawk \'/_NET_WM_STATE/ {print $0; exit;}\'' % Split[0]).readlines()[0]
IndexError: list index out of range
Also, Thunar isn't working with launch-restore. Using the script causes it to open a window (and multiple instances thereof). On a hunch I ran wmctrl -lx and I noticed the output for the Thunar window was this:
Code:
0x03800003 0 <unknown>.<unknown> jon jon - File Manager
Just running Thunar alone (via the terminal) wmctrl reports that window correctly (thunar.Thunar).
Edit: I tried "tricking" it by using -n 'File Manager' and got this debug output:
Code:
['0x03800003', '0', '<unknown>.<unknown>', 'jon', 'jon - File Manager\n']
* []
Traceback (most recent call last):
File "/usr/local/bin/launch-restore", line 257, in <module>
Counts, IDData, DeskData, MinData, CurDesktop, CurWin, StackOrder = GetWinInfo(Match, MatchClass)
File "/usr/local/bin/launch-restore", line 110, in GetWinInfo
Hidden = '_NET_WM_STATE_HIDDEN' in os.popen('xprop -id %s | nawk \'/_NET_WM_STATE/ {print $0; exit;}\'' % Split[0]).readlines()[0]
IndexError: list index out of range
Edit2: Tried Gaim for the heck of it (partially the reason I wanted to be able to handle multiple windows ) and got this output:
Code:
['0x0180005a', '0', 'gaim.Gaim', 'jon', 'Buddy List\n']
* ['_NET_WM_STATE(ATOM) = \n']
['0x0180ae99', '0', 'gaim.Gaim', 'jon', 'FreeFragSGS\n']
* []
Traceback (most recent call last):
File "/usr/local/bin/launch-restore", line 257, in <module>
Counts, IDData, DeskData, MinData, CurDesktop, CurWin, StackOrder = GetWinInfo(Match, MatchClass)
File "/usr/local/bin/launch-restore", line 110, in GetWinInfo
Hidden = '_NET_WM_STATE_HIDDEN' in os.popen('xprop -id %s | nawk \'/_NET_WM_STATE/ {print $0; exit;}\'' % Split[0]).readlines()[0]
IndexError: list index out of range
Bookmarks