Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2475 connectés 

 


Dernière réponse
Sujet : Ouvrir plusieurs fenêtres FireFox... ?
The_Fury File--->New windows    [:xice007]

Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
The_Fury File--->New windows    [:xice007]
khalys xPOULET -> Merci ! :) J'avais mal compris ce que tu voulais dire en fait. Comme ça, ça marche effectivement ! Cool !
xpoulet tout ca pour ca  [:mlc]
Threep script de gentoo pour lancer firefox


#!/bin/bash
#
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/net-www/mozilla-firefox/files/firefox,v 1.1 2004/02/10 07:21:13 brad Exp $
 
# Set to "window" if you prefer new Firefox windows instead of new tabs
newtype=${MOZILLA_NEWTYPE:-"tab"}
 
# Point this to your Firefox installation if not using the default
export MOZILLA_FIVE_HOME="/usr/lib/MozillaFirefox"
fbpath=${MOZILLA_FIVE_HOME}
 
# Sanity check
if [[ -z $DISPLAY ]]; then
  echo "DISPLAY is unset!" >&2
  exit 1
fi
 
# Validate the args and extract the url
url=''
declare -a args=($@)
while [[ $# -ne 0 ]] ; do
  if [[ $1 == -* ]] ; then
    case ${1#-} in
      height|width|CreateProfile|P|UILocale|contentLocale|remote|edit|chrome)
        shift 2 ;;
      *)
        shift 1 ;;
    esac
  else
    if [[ -n $url ]] ; then
      echo "Usage error: more than one URL given" >&2
      exit 255
    else
      url=$1
      shift 1
      if [[ $url != *:* ]] ; then
        url=http://$url
      fi
    fi
  fi
done
 
# Try to start in an existing session; check all screens
declare -a screens=(
  $(/usr/X11R6/bin/xdpyinfo | awk '
    /^name of display:/ {  
      disp = substr($NF, 0, index($NF, "." )-1)  
    }
    /^number of screens:/ {
      for (i = 0; i < $NF; i++) printf("%s.%d\n", disp, i)
    }')
  )
 
# Attempt to fix bug 39797 by making sure MozillaFirefox is running
# on the DISPLAY prior to calling mozilla-xremote-client.  The
# problem here is that mozilla-xremote-client will return a zero
# exit status if it contacts a Thunderfox-0.3 instance, even though
# Thunderfox can't handle the openURL request.  :-(
#
# Note: This seems to be fixed with Thunderfox-0.4, which rejects the
# openURL request appropriately.
declare -a candidates=()
for s in $DISPLAY "${screens[@]}"; do  
  if DISPLAY=${s} xwininfo -root -tree | grep -q 'firefox-bin'; then
    candidates=("${candidates[@]}" ${s})
  fi
done
 
if [[ ${#candidates[@]} > 0 ]]; then
  for s in "${candidates[@]}"; do  
    DISPLAY=${s} ${fbpath}/mozilla-xremote-client "openURL($url, new-$newtype)" \
    && exit 0
  done
  retval=$?
else
  # simulate mozilla-xremote-client's response when it can't find an instance
  retval=2
fi
 
if [[ $retval -eq 2 || $retval -eq 3 ]] ; then
  # 2 = No running windows found, so start a new instance
  # 3 = Thunderfox is running, but doesn't handle openURL command
  #     (or it might be an unresponsive Firefox)
  ${fbpath}/firefox "${args[@]}" && exit 0
  retval=$?
  echo "firefox exited with non-zero status ($retval)" >&2
elif [[ $retval -eq 1 ]] ; then
  echo "Unable to connect to X server" >&2
else
  echo "Unknown error $retval from mozilla-xremote-client" >&2
fi
 
exit $retval
 
# vim:expandtab sw=2:


 
Pour que ça ouvre une nouvelle fenetre plutôt qu'un nouveau tab, faut remplacer la 1ère ligne par


newtype=${MOZILLA_NEWTYPE:-"window"}


xpoulet chez moi virer le fichier lock fonctionne...  
avec un piti script ca donne
 

#!/usr/bin/perl
 
my $lock = '/home/xpoulet/.phoenix/default/clnxnx68.slt/lock';
 
if (-l $lock)
{
system ("rm -f $lock" );
}
system ("/usr/local/firefox/firefox" );

lint

xPOULET a écrit :

un skin de fentetre XP staÿle  [:totoz]

kde powered  [:chacal_one333]

EverGlide

Khalys a écrit :

EverGlide -> cette technique ne fonctionne pas chez moi.


 
Ca devrai pourtant
 

Code :
  1. lrwxr-xr-x  1 everglide  wheel      13 Feb 22 22:15 lock -> 10.42.0.2:562


 
En le virant, moi je peux relancer un firefox derriere ;)
Et ca marche aussi bien sur mon moz au boulot :)

xpoulet

un skin de fentetre XP staÿle  [:totoz]

lint utilise les tabs
 
http://www.mozilla.org/products/fi [...] abs-1b.png  
 
http://www.mozilla.org/products/fi [...] tabs-2.png
khalys EverGlide -> cette technique ne fonctionne pas chez moi.
EverGlide

Khalys a écrit :

Comment faire pour ouvrir deux fenêtres FireFox ? Je m'explique : après en avoir ouvert une, si je veux en ouvrir une deuxième via mon raccourci, il râle en me demandant quel profil utilisateur je veux pour ouvrir ma nouvelle fenêtre. Si je reprends le profil par défaut, il me dit qu'il ne veut pas ouvrir la fenêtre car il y en a déjà une autre ouverte sous ce profil.
 
Je sais que je peux en ouvrir une via File->New Window, mais c'est pas possible de le faire en utilisant mon raccourci ? C'est quand même un peu con ça, non ?


 
Qd tu fais ton raccourci, juste avant fait ca:
 
rm .phoenix/default/le_rep_au_nom_affreux/lock
 
apres tu pourras relancer une nouvelle session via ton raccourci ;)

xpoulet ctrl + T  (oui, je sais ca répond pas a ta question  :whistle: )
khalys xPOULET -> Tu parles de quoi là ?
khalys Merci, mais ça je le savais déjà.
 
En même temps, c'est pas bien grave s'il n'y a pas d'autre moyen.
xpoulet et les tabs spa pour les chiens non plus :o
dark ctrl + n ou fichier--> nouvelle fenetre :o
khalys Comment faire pour ouvrir deux fenêtres FireFox ? Je m'explique : après en avoir ouvert une, si je veux en ouvrir une deuxième via mon raccourci, il râle en me demandant quel profil utilisateur je veux pour ouvrir ma nouvelle fenêtre. Si je reprends le profil par défaut, il me dit qu'il ne veut pas ouvrir la fenêtre car il y en a déjà une autre ouverte sous ce profil.
 
Je sais que je peux en ouvrir une via File->New Window, mais c'est pas possible de le faire en utilisant mon raccourci ? C'est quand même un peu con ça, non ?

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)