LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Firefox windows on separate X displays (https://www.linuxquestions.org/questions/linux-desktop-74/firefox-windows-on-separate-x-displays-789402/)

CoderMan 02-16-2010 01:46 AM

Firefox windows on separate X displays
 
Hello, I use Xfce4 DE and the Firefox web browser. One my desktop PC, I also use the "nvidia-settings" tool to use two monitors in "Separate X Screen" mode, so each monitor is treated as a different X display.

This has been a great setup over all. There is one quirk though: I find that I can only have Firefox open on one monitor or the other. I can open a new window, but it will only opened inside the same monitor. (Windows can not be dragged across screens in "Separate X Screen" mode).

I tried something like this inside the other X display:

Code:

$ firefox --display=:0.1 -no-remote
Xlib:  extension "Generic Event Extension" missing on display ":0.1".
Xlib:  extension "Generic Event Extension" missing on display ":0.1".
Xlib:  extension "Generic Event Extension" missing on display ":0.1".
Xlib:  extension "Generic Event Extension" missing on display ":0.1".
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)
Xlib:  extension "Generic Event Extension" missing on display ":0.1".

But the little "Close Firefox" box just pops up saying that to open a new window, I must first close the existing Firefox process.

Anyone know I hack I could use here to get a two Firefox windows open on both displays simultaneously?

My system is Gentoo amd64:

Code:

$ emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 13 Feb 2010 22:15:01 +0000
app-shells/bash:    4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:    2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:      4.3.2-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:  2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://poirot/gentoo-portage"
USE="X acl alsa amd64 bash-completion battery berkdb bindist branding bzip2 cli cpufreq cracklib crypt cups curl cxx dbus dri dvd dvi emacs fortran gdbm gif gnome gpm gtk hal iconv ipv6 java jpeg jpeg2k kde kerberos latex lm_sensors mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt3support readline reflection screensaver session spl sse sse2 ssl svg sysfs tcl tcpd theora threads tiff tk unicode videos vorbis xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Quakeboy02 02-16-2010 01:06 PM

I've been wanting to do this too, so your post motivated me to google it and I found this page:

http://ubuntuforums.org/showthread.php?t=691875

From the last post you can see that it's just a matter of creating a second profile to use on your other display. I checked it, and it works.

CoderMan 02-16-2010 01:22 PM

Quote:

Originally Posted by Quakeboy02 (Post 3865909)
I've been wanting to do this too, so your post motivated me to google it and I found this page:

http://ubuntuforums.org/showthread.php?t=691875

From the last post you can see that it's just a matter of creating a second profile to use on your other display. I checked it, and it works.

Not quite the ideal option, as this means bookmarks, plugin setting, etc. will not be synced across the monitors. But I guess it would be beneficial if I was to keep each display focused on certain aspects of browsing (e.g., one for YouTube videos, the other for general browsing...)

Quakeboy02 02-16-2010 01:42 PM

Try this: go to .mozilla/firefox and copy the contents of the <somehashnumber>.default folder to your new profile's folder. The investment in time is minimal so it's worth a try. Seems to work for me but I haven't tested it exhaustively. Be sure not to get it backwards. :)

jschiwal 02-18-2010 12:33 AM

I haven't tested this but you might try "firefox -no-remote -display :0.1". I'm not sure if this will work, but if I run firefox remotely via ssh, I need the no-remote option or it will be run locally. The -noremote option seems to have the opposite meaning. I don't know if you need a new profile for this to work.

Maybe it would be easier to run "firefox -new-window -display :0.1 <url>".

Quakeboy02 02-18-2010 11:42 AM

Neither of those options work for me. I can't speak for the OP.

jschiwal 02-20-2010 12:19 PM

Looks like it is necessary to use profiles than. As the OP stated, having one profile for the second screen might be advantageous.


All times are GMT -5. The time now is 08:31 PM.