Comment 21 for bug 1277972

Revision history for this message
Jason Gambrel (jaygambrel) wrote :

Okay. One final Devil's Pie 2 script. This one tries to unminimize the window, then waits a second and tries again. I have found that if the first one misses the second attempt consistently works a second later.

function sleep(n)
    os.execute("sleep " .. tonumber(n))
end

if (get_application_name()=="Microsoft Silverlight") then
    unminimize();
    sleep(1);
    unminimize();
end

See the above post for installing Devil's Pie 2 and creating an Lua file.

I hope this helps someone as I have pulled most of my hair out trying to get this to work consistently.

- Jay