When starting a program from the commandline in C5, is there any way to specify where on the screen the resulting window will be put?
I have a nuisance of a problem: Running rdesktop with the -D option (which hides window decorations, making the rdesktop window appear borderless), one cannot (as far as I can figure out) drag the window: there are no borders to grab, and alt-drag doesn't work either.
it's always opening in a place that covers other windows, and I can't drag it away from there.
specifically: I want to run two instances of rdesktop, and it always plunks the second one right on top of the first one. since I can't drag either of them, I can't see them both at the same time. (I "carefully" configure each of them so they are the exact size of the physical screen, so that it looks like a real windows session, and also prevents me from casually/stupidly closing the entire RDP window by accident.) Since I have two displays, I'd like to place one of them on each screen, by itself.
Anyone know how to solve this?
thanks!
Fred
On Mon, 16 Sep 2013 14:31:33 -0400 Fred Smith wrote:
Anyone know how to solve this?
I've never used this myself, but this appears to do what you want.
http://www.gusnan.se/devilspie2/
On Mon, Sep 16, 2013 at 12:45:34PM -0600, Frank Cox wrote:
On Mon, 16 Sep 2013 14:31:33 -0400 Fred Smith wrote:
Anyone know how to solve this?
I've never used this myself, but this appears to do what you want.
Thanks, Frank.
One should always remember: "Use the Source, Luke."
so I took a gander at the rdesktop source and lo and behold, it has an undocumented option to specify the x and y offsets where the window should be placed!
"-g480x320" gives you a window of 480 horizontal and 320 vertical, placed wherever it feels like putting it.
"-g480x320+480+50" gives you a window of 480 horizontal and 320 vertical, placed at an x offset of 480x and 50y. From which I kinda assume that without the "+480+50" it puts it at the top left-hand corner of the display, which in fact seems to be what it's doing.
You can, of course, use a "-" instead of a "+" when specifying the offsets, too, though that would seem to place things off the edge of the screen, and I'd wonder what's the point...
Fred