I've been using this method for quite a while and it generally works very well but I'm having trouble getting it to work with VirtualBox when using startup parameters to launch with a particular virtual machine.
I can get it working when starting Vbox with the "VirtualBox" command, but I generally use this command to launch windows xp automatically:wmctrl -lx gives me this:Code:VBoxSDL -vm WinXPI've tried various combinations with no luck so far.Code:VBoxSDL.VBoxSDL N/A innotek VirtualBox - WinXP (HWVirtEx)
An update for those who have posted problems in the last few months.
1. If you have a %u on the end of your launch-restore command line, and do not actually need it (nearly all cases, I'm actually not sure why so many programs have it), removing it may help with inconsistent behavior. I've noticed, especially in Gutsy, that passing the empty parameter sometimes modifies the program's response to being called.
2. Virtualbox is a problem. I haven't figured it out yet, but the various VBox utilities do something very odd with the parameters they are invoked with, such that they don't parse correctly when passed by launch-restore. As I've switched to VBox and like to directly invoke my virtual machine using VBoxManage or other tools, I will be working on this, but can't promise a solution.
Also, as this post should indicate, I am starting to resume active development on this project, and while I hope to have a significantly improved version relatively soon, I can't commit to a deadline. Some of the improvements will require my learning a new set of programming tools, so that will slow me down a bit. Please do continue to identify problems and I'll try to resolve those, possibly releasing an intermediate version to deal with them.
This seems to be a very good program, but I search how to use for always have only one instance of evolution, could you help me please?
worked. You can add the -h and -a switches to respecitively hide the window list button and have the restore/minize work on all windows. If it isn't working for you, please post your launch-restore line and the behavior you observe.Code:launch-restore evolution evolution
I've just posted version 0.52, which should resolve the problems with certain programs not responding correctly when passing arguments (e.g., virtualbox). I'm in the process of rewriting much of it to replace dependency on wmctrl and allow for easier use and configuration, if time allows I will have a radically revised version posted in a few days.
Upon further investigation, I've concluded that most of what I want to do is simply not possible without many weeks of dedicated effort, very low-level code (I'm a high-level programmer), and relatively little gain from the user's point of view anyway. If there is demand, I should be able to implement a fix for the wmctrl bug that requires a keyboard shortcut to minimize, if anyone is having trouble with that aspect, and I'll fix any straightforward bugs that are reported. Unfortunately, beyond that I simply do not have the time due to the demands required and the incredibly poor documentation available for how to work with X.
I've been happily using this for some time but it doesn't seem to want to work with Firefox/Iceweasel 3
It does focus the window but then always opens a new instance as well.
The first option is equivalent to the "open new pages in tabs" (instead of windows) setting via the Preferences interface; the second is the one more likely to have an impact, as it should supress all automatically spawned new windows.Code:browser.link.open_newwindow = 3 browser.link.open_newwindow.restriction = 0
If none of that works, please post the output of wmctrl -lx when the browser is running and your relevant launch-restore command. This may motivate me to give rc2 a try, after being put off by the last beta.