Outils pour utilisateurs

Outils du site


issue66:fermeture_des_fenetres

Titre : File Associations (Open with) Double clicking a file will, usually, open it in the appropriate application. So, double clicking a Word document will load up the Word application which will, in turn, open the chosen Word document. This is called ‘file association’. If a file does not have an application associated with it, then you will be asked which application should be associated with this file type and if it should be made permanent. Alternatively, you can right-click a file and choose which application it should open in. This is especially true if one file can be opened in a variety of applications. For example, an MP3 file. You may want to open it, this time, in an audio editing application instead of playing it like you normally would.

Types de fichiers (S'ouvre avec)

Habituellement, un double clic sur un fichier l'ouvrira dans l'application appropriée. Ainsi, un double clic sur un document Word chargera l'application Word qui, à son tour, ouvrira le document Word choisi. Ceci s'appelle « Types de fichiers (S'ouvre avec) ». S'il n'y a pas d'application associée à un fichier, on vous demandera quel programme devra être associé à ce type de fichier et si vous voulez que l'association application-type de fichier devienne permanente (ou par défaut). Par ailleurs, vous avez la possibilité de faire un clic droit sur un fichier et de choisir le programme avec lequel vous voulez l'ouvrir. Ceci est particulièrement vrai si un fichier peut être ouvert avec plusieurs applications ; par exemple, un fichier MP3. Cette fois-ci, vous pourriez vouloir l'ouvrir avec une application d'édition de données audio au lieu de l'écouter comme vous le feriez normalement.

Kubuntu As with Windows, when you double click a file, and Kubuntu has no idea what type of file it is, you’ll be presented with a window asking you which application you want to try and load the file with. You can also right click a file and choose ‘Open With…’ from the menu. Often an application will install and associate itself with a file type. This will show when you right-click a file and choose ‘Open With’ and you see several options. Sometimes human error occurs and you associate a file type with the wrong application. This can be corrected in System Settings > File Associations. Here you can manually add/edit file types. These settings are also helpful in that you can have an order of preference. So, for example in the screen shown, I have the file type ‘jpeg’ set to open in Gwenview first. Should that fail, Kubuntu will try and load it in GIMP and so on down the list. This is the list of options that I mentioned previously.

Kubuntu

Comme sous Windows, quand vous double-cliquez sur un fichier et que Kubuntu ne le reconnaît pas, une fenêtre de dialogue s'affichera pour vous demander l'application avec laquelle vous voulez essayer de charger le fichier.

Vous pouvez aussi faire un clic droit sur un fichier et choisir « Ouvrir avec » dans le menu contextuel. Souvent une application s'installera et s'associera avec un type de fichier. Vous le verrez lorsque vous faites un clic droit sur un fichier et choisissez « Ouvrir avec » suivi de plusieurs options.

Parfois il y a une erreur humaine : vous associez un type de fichier à une mauvaise application. Vous pouvez corriger cela dans Paramètres système > Associations de fichiers. C'est ici que vous pouvez éditer et ajouter des types de fichiers à la main.

Ces paramètres sont également utiles parce que vous pouvez avoir un ordre de préférence. Ainsi, par exemple, comme vous pouvez le voir dans la capture d'écran, le type de fichier « jpeg » devrait s'ouvrir avec Gwenview en premier lieu. Si cela ne fonctionne pas, Kubuntu essaiera de le charger dans GIMP et ainsi de suite . C'est la liste d'options dont j'ai parlé précédemment.

Gnome Shell In Gnome Shell a few applications are mentioned as default for some operations, like web-browsing, e-mail, etc. These programs can be selected in Activities > Applications > System Settings > Details > Default Applications. Other files, like a simple text file, can be attached to a default program by means of right-clicking the file in the file-manager. A menu appears showing the possible options. The default setting for this type of file is gedit, so, when you double-click the file, gedit will run and it will open the text file. Should you want to open the file with a program other than gedit, choose the second option: Open With Other Application. Depending on the file-type you will see some programs listed. Should you still not find the program you want to use here, chose Other Application. A new window is opened with the list of programs. When even this list is not enough to choose from, select the button Show other applications at the bottom of the window. Now all installed programs are listed. Should your desired program not be in this list, then I suggest to install it first. A small variation to this all makes it possible to change the default program to open a certain file-type. Right-click the file, choose Properties, select the tab Open with, choose the right program, select the button Set as default. From now on, when you double-click the file, the newly chosen program will open it.

Gnome Shell

Dans Gnome Shell, quelques applications sont étiquetées par défaut pour certaines opérations, comme le navigateur web, le client mail, etc. Vous pouvez choisir ces programmes dans Activités > Applications > Paramètres système > Détails > Applications par défaut.

D'autres fichiers, comme un fichier texte simple, peuvent être attachés à un programme par défaut en faisant un clic droit dessus dans le gestionnaire des fichiers. Un menu s'affiche et montre les options possibles.

Le programme par défaut pour ce type de fichier est gedit. Ainsi, quand vous double-cliquez sur le fichier, gedit se lancera et ouvrira le fichier texte.

Si vous voulez ouvrir le fichier avec un programme autre que gedit, choisissez la deuxième option : Ouvrir avec une autre application.

Selon le type de fichiers vous verrez une liste de quelques programmes. Si vous ne trouvez toujours pas le programme que vous voulez utiliser, sélectionnez alors Autre application. Une nouvelle fenêtre s'ouvre avec la liste de programmes. Si cette liste-ci n'est toujours pas suffisante, sélectionnez le bouton en bas de la fenêtre, Montrer d'autres applications. À ce stade, tous les programmes installés apparaissent dans la liste. Si le programme voulu n'y est pas, il faudra d'abord l'installer.

Une légère variante rend possible la modification du programme par défaut qui ouvrira un type de fichier défini. Faites un clic droit sur le fichier, choisissez Propriétés, sélectionnez l'onglet Ouvrir avec, choisissez le programme qu'il vous faut et cliquez sur le bouton Régler par défaut. Dorénavant, quand vous ferez un double clic sur le fichier, le programme nouvellement choisi l'ouvrira.

Xubuntu Just like many other Desktop Environments, in Xfce and Xubuntu you have a selector accessible within the file manager that allows you select an application per file type. First, open the file manager by going to the mouse menu at the top left > Accessories > File Manager, and then go to a directory that has files you wish to open. Double-clicking on a file will open it in the default application associated with it. A single right-click will bring you to a menu that allows you to open with the default application associated with it, or with other applications which may be associated with that file type. You also have the option of “Open With Another Application…” which will bring up an “Open With” window that allows you to select any application for association, or a custom command, and also gives you a checkbox for “Use as default for this kind of file” – so it remembers it as your default preference. Just like with Gnome Shell, you can also set the application you wish to open the file with by opening the “Properties” dialog for the file and changing the “Open With” setting, which will change the default application for that and other files of the same type. Finally, there are limited default application associations under the mouse menu > Settings > Settings Manager > Preferred Applications. This settings menu will allow you to select the default Web Browser, Mail Reader, Terminal Emulator, and File Manager.

Xubuntu

Tout comme dans beaucoup d'autres environnements de bureau, dans XFCE et Xubuntu un sélecteur est disponible au sein du gestionnaire de fichiers et vous permet de sélectionner une application par type de fichier.

Commencez par ouvrir le gestionnaire de fichiers : menu Souris en haut à gauche > Accessoires > Gestionnaire de fichiers. Allez dans le répertoire qui contient les fichiers que vous voulez ouvrir.

Un double clic sur un fichier l'ouvrira avec l'application par défaut. Un seul clic droit affichera un menu qui vous permet de l'ouvrir avec l'application par défaut ou avec d'autres applications qui peuvent être associées à ce type de fichier.

Vous pouvez aussi « Ouvrir avec une autre application », laquelle affichera une fenêtre « Ouvrir avec » qui vous donne la possibilité de choisir n'importe quelle application pour association ou une commande personnalisée. Il y a également une case que vous pouvez cocher « Par défaut pour ce type de fichier » - pour qu'il s'en souvienne en tant que votre préférence par défaut. Tout comme avec Gnome Shell, vous pouvez régler l'application avec laquelle vous voulez ouvrir le fichier en ouvrant le dialogue « Propriétés » du fichier et en modifiant le paramètre « Ouvrir avec », ce qui changera l'application par défaut pour le fichier ainsi que pour d'autres fichiers du même type.

Enfin, vous pouvez choisir quelques applications par défaut dans le menu Souris > Paramètres > Gestionnaire des paramètres > Applications préférées. Ce menu vous permet de choisir le navigateur Web, le client Mail, l'émulateur de Terminal et le Gestionnaire de fichiers par défaut.

Lubuntu Even in the minimalist LXDE environment, there are options to control file associations, and the process is very similar to those already described above. Let’s start with the “Preferred Applications” window: from the main menu, select Preferences > Preferred Applications. This window allows you to set system applications, but only two options are presented: Web Browser and Mail Client. (NOTE: I am using Lubuntu version 11.04; your mileage may vary.) The defaults are Chromium and Sylpheed, respectively; however, if you have other applications installed, then you can select them from the provided dropdown lists. As with the other window managers described above, double-clicking a file in LXDE will open that file in the default preferred application. If, however, you would like to open that file with a different application, you can right-click the file and the pop-up menu will list any other applications with which that file type is compatible. Select (i.e. left-click) the desired application from the pop-up menu, and the file will open in that application. If the application with which you want to open the file is not listed in the pop-up menu, then you can select “Open With…” from the menu to select any application you have installed on your system from the Choose an Application window.

Lubuntu

Même dans l'environnement minimaliste de LXDE il y a des possibilités de contrôler les associations de fichiers et le processus est très similaire à ceux décrits ci-dessus. Commençons par la fenêtre « Applications préférées » : dans le menu principal, choisissez Préférences > Applications préférées.

Cette fenêtre vous permet de régler les applications système, mais vous n'avez que deux options : le navigateur Web et le client Mail. (N.B. J'utilise Lubuntu 11.04 ; votre système peut être différent.) Les applications par défaut sont, respectivement, Chromium et Sylpheed ; toutefois, s'il y a d'autres applications installées, vous avez la possibilité de les choisir dans les listes déroulantes.

Comme c'est le cas pour les autres gestionnaires de fenêtres décrits ci-dessus, un double clic sur un fichier dans LXDE ouvrira ce fichier dans l'application préférée par défaut. Si, néanmoins, vous aimeriez ouvrir ce fichier avec une autre application, vous pouvez faire un clic droit dessus et toutes les autres applications compatibles avec ce type de fichier seront listées.

Sélectionnez (faites un clic gauche sur) l'application voulue et le fichier s'ouvrira dans cette application.

Si l'application avec laquelle vous voulez ouvrir le fichier n'apparaît pas dans le menu déroulant, vous pouvez choisir « Ouvrir avec » dans le menu pour sélectionner, à partir de la fenêtre Choisir une application, n'importe quelle application déjà installée sur votre système

From the Choose an Application window, you are, by default, placed on the “Installed Application” tab; from here, you can can expand each category to browse for the application you want. There is also a “Custom Command Line” tab which allows you to create a custom command to launch the application of your choice using the power of command line options to control it. In both cases, you can choose to make your selection the default application/action for this type of file by putting a “check” in the check-box at the bottom of the window. If you do, your choice will be saved and it will become the default action every time you open a file of this type; otherwise, your choice will be valid for only this one selection, and all future attempts to open a file of this type will revert to the saved default. Selecting the “File Properties” for a file provides you with an “Open with…” option that is identical in function to the “Open with…” option from the file’s pop-up menu, as described above.

À partir de la fenêtre Choisir une application, vous vous trouvez, par défaut, dans l'onglet « Applications installées » ; à partir de là, vous avez la possibilité de développer le contenu de chaque catégorie afin de les parcourir pour trouver l'application voulue. Vous verrez aussi un onglet « Ligne de commande personnalisée » qui vous permet de créer une commande qui lancera l'application que vous voulez, avec toute la puissance du contrôle des options de la ligne de commande. Dans les deux cas, vous pouvez choisir de faire de votre sélection l'application/l'action par défaut pour ce type de fichier en cochant la case en bas de la fenêtre. Si vous le faites, votre choix sera enregistré et deviendra l'action par défaut chaque fois que vous ouvrirez un fichier de ce type ; sinon, votre choix ne sera valide que pour cette seule fois et quand vous ouvrirez à nouveau un fichier de ce type, il s'ouvrira avec l'application par défaut déjà paramétrée.

La sélection des « Propriétés » d'un fichier vous donne une option « Ouvrir avec … » qui fonctionne de la même façon que l'option « Ouvrir avec… » dans le menu déroulant du fichier, comme décrit ci-dessus.

issue66/fermeture_des_fenetres.txt · Dernière modification : 2013/01/03 08:23 de fcm_-_ekel