I have a hacky workaround for Linux users.  I threw together a script to
deal with this problem some time ago (for a number of programs I was
using, but mostly Firefox).  It's in a GitHub repository here:
https://github.com/zepalmer/script-vdr

Since that script expects PIDs, I usually call it from a separate
wrapper script for Firefox:

#!/bin/bash
mode="$1"
if [ "$mode" != "load" -a "$mode" != "save" ]; then
    echo "Valid modes are \"load\" or \"save\"."
    exit 1
fi
ps ax | grep firefox | grep -v grep | egrep -o '^ *[0-9]+' | egrep -o '[0-9]+$' 
| \
while read pid; do
    [ -n "$pid" ] && vdr --$mode $pid
done

I saved the above as "~/bin/vdr-ff".  I have keystrokes which run "vdr-
ff load" and "vdr-ff save" so I can periodically save my Firefox window
positions and then reload them when I have to restart Firefox.  In
theory, I could put "vdr-ff save" in a user crontab, but I haven't
bothered to deal with making sure it doesn't save immediately after
Firefox starts.

Please note that the script operates by using the X window title.  This
means that (a) sites with changing titles won't restore properly and (b)
some bit of information about your browsing history is stored in
"~/.vdr.data".

Of course, I'd *much* prefer a proper resolution to this bug, but I
haven't the faintest idea how to solve it in a platform-independent
manner.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/684982

Title:
  Firefox windows don't restore on correct workspaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/684982/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to