Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using opensuse 12.1 here at work to run a machine that's sole purpose is too open Firefox with a certain web address and that's pretty much it. So for now I am using a bash script I wrote that tells Firefox what URL to go to using:
export DISPLAY=:0
firefox http://<URL name>
then set up a cron job that runs that script and for the most part it works, just not like how i need it to work. The URL that I am telling Firefox to go then launches two other windows, and this is where I am having an issue. I am trying to get it to where one window opens on the left screen and the other window opens on the right screen, right now its open two the main URL on the left and the two secondary windows on the right Im wondering if it would be worth my time and sanity to try and write a script using java or something similar to tell it what to do with the two windows, or just keep fussing with the way I am doing it.
Thanks for any suggestions and help to this minor frustration I am having.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Could you not find the URLs of the popups and display them separately? I realise that means messing with Firefox profiles to get two instances running but it would allow you to open them where you wanted.
I have tried to open the popup's separately and all it does is still open them both on either the right side or the left side, I am looking for a way to always have them open up one on the right and one on the left. I have not tried to mess with the firefox profiles, can you expand a little more on this idea for me please.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
What I meant was run something like:
Code:
export DISPLAY=:0.0
firefox http://<URL of first popup>
export DISPLAY=:0.1
firefox http://<URL of second popup>
But, if you do this Firefox may complain about there being an instance running already, though this just happens with certain twin-head setups I think and the answer would be to create separate profiles.
This thread touches on what I am suggesting: http://www.linuxquestions.org/questi...splays-789402/
Ok i have tried using the suggested code and I get the error cannot open DISPLAY =:0.1, I also tried it on my test machine that has the same setup and I get the same error. My test machine is using a nvidia card that has the correct drivers and X config, my other machine is just using the on board video.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Ah, shame, that trick should work if you're running as two separate X sessions. You could try echoing display on booth monitors and seeing if there is a way to differentiate them.
otherwise, I'm out of ideas I'm afraid.
No worries man, I do appreciate the suggestions. On my test machine I do have the two monitors configured as separate X screens, not sure if that is the same as separate x sessions. Either way I am gonna keep looking at what I can do and hope for the best.
export DISPLAY=:0.0
firefox http://<URL of first popup>
export DISPLAY=:0.1
firefox http://<URL of second popup>
But, if you do this Firefox may complain about there being an instance running already, though this just happens with certain twin-head setups I think and the answer would be to create separate profiles.
This thread touches on what I am suggesting: http://www.linuxquestions.org/questi...splays-789402/
I have finally fixed my issue. Ok so the biggest thing I was missing was the Xinerama setting in the xorg.conf file. I had it set to "1" thus allowing me to drag windows over and what not and that was preventing me from actually being able to designate DISPLAY=:0.0 and DISPLAY=:0.1. Got it turned off and rebooted and viola it works. The next thing I had to set up was separate profiles in Firefox. Now all that is said and done I can now tell Firefox to open a separate window in both screens. Thank you all for the feed back to my little dilemma I was having.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Darn, I should have thought about Xinerama, I run separate X servers because whilst being able to move windows between monitors is useful not knowing which monitor a window will open on is too annoying.
Glad you're moving towards a solution . If your problem is solved, you should probably mark this thread solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.