Outils pour utilisateurs

Outils du site


issue68:fermeture_des_fenetres

Running An App On Startup

Exécution d'une application au démarrage

Having an application start, automatically, on startup is something akin to black magic – even in Windows XP. It’s not exactly obvious, but dragging or copying an application (or shortcut to it) to the Start > Startup folder is how it’s done.

Lancer une application automatiquement au démarrage de la machine est quelque chose qui s'apparente à la magie noire — même sous Windows XP. Ce n'est pas spécialement évident, mais faire glisser ou copier une application (ou un raccourci vers celle-ci) dans le dossier « Programmes/Démarrage » du menu Démarrer est le moyen d’y parvenir.

Kubuntu Like everything else in KDE, you can alter the startup applications by going into System Settings. The first option on the left of the window is ‘Autostart’, and it’s here you add an application/script to your startup. The Service Manager option on the left is for enabling/disabling actual KDE services such as bluetooth, power management, audio mixing and such like. Lastly, Session Management deals with how KDE will react when you choose to shut down the machine. Should it log out, restart the PC, or shut down the PC by default?

Kubuntu

Comme tout le reste dans KDE, vous pouvez modifier les applications lancées au démarrage en allant dans la configuration du système, section Administration du système. Cliquez sur « Démarrage et arrêt ». La première option sur la gauche de la fenêtre est « Démarrage automatique » et c'est ici que vous ajoutez une application ou un script pour obtenir son lancement au démarrage.

L'option « gestionnaire de service » sur la gauche permet d’activer/désactiver les services KDE tels que Bluetooth, la gestion de l'alimentation, le mixage audio, etc.

Enfin, la « gestion de session » gère la façon dont KDE va ​​réagir lorsque vous choisissez d'arrêter la machine. Faut-il fermer la session, redémarrer ou éteindre le PC par défaut ?

Gnome-Shell In Gnome-Shell it’s also very simple to add a program to the list of programs which should start when you boot the OS. In Applications > System Tools > Preferences > Startup Applications, you can add a program. Click the Add button. Then, in the new window (Add Startup Program), give your program a name, browse for the file to start, and, if you like, you can also give some comment about it. Click Add again and the item will appear in the list as can be seen in the picture. After adding a program to the list, you can even select if you want it to start during the next boot, tick the box in front of the item, or, if not, untick the box. The item will remain in the list but it can be de-activated. If you want to know what to put into the “Command” box, then have a look at the shortcut which is made for the program in the main menu. Copy-Paste the path and program name into the field and at next boot your program is running. That’s all there is to tell about autostart in the Gnome-Shell interface of Ubuntu. It’s not much but it just shows how easy it is to use this OS.

Gnome-Shell

Dans Gnome-Shell c'est aussi très simple d'ajouter un programme à la liste des programmes qui doivent se lancer lorsque vous démarrez le système d'exploitation. Dans Applications > Outils système > Préférences > Applications au démarrage, vous pouvez ajouter un programme.

Cliquez sur le bouton « Ajouter ». Ensuite, dans la nouvelle fenêtre (Ajouter un programme de démarrage), indiquez le nom de votre programme, recherchez le fichier qui devra être lancé et, si vous le souhaitez, vous pouvez aussi ajouter un commentaire. Cliquez sur « Ajouter » à nouveau et l'élément apparaîtra dans la liste comme on peut le voir sur la photo. Après l'ajout d'un programme à la liste, vous pouvez également choisir si vous souhaitez le lancer au cours du prochain démarrage en cochant la case en face de l'élément ; sinon, décochez la case. L’élément restera dans la liste, mais sera désactivé.

Si vous voulez savoir ce qu'il faut mettre dans la zone « Commande », allez consulter le contenu du raccourci de ce programme dans le menu principal. Copiez-Collez le chemin et le nom du programme dans la zone de saisie et au prochain démarrage de votre système le programme se lancera.

C’est tout ce qu’il y a à savoir concernant le lancement automatique en interface Gnome-Shell sous Ubuntu. Ce n'est pas beaucoup, mais cela montre à quel point il est facile d'utiliser ce système d'exploitation.

Lubuntu We have finally reached a topic for which the process in Lubuntu is the epitome of “simple and lightweight”…and totally NOT at all intuitive! That “revelation” is in the context of MS Windows users migrating to Lubuntu, and in that context this statement is (IMHO) true. I’ll admit it right now: there is no GUI application to add a program to the startup list. Also, you’ll need to be “root” (a.k.a. administrator) to alter this list. And, being Linux, there are many ways to accomplish this very simple task. All that said, I am going to present one way to accomplish this task; you may then alter it to your liking. Now that the requisite “confessions” are on the table, let’s see how incredibly easy it is to add startup applications to Lubuntu. Here’s a summary of what you’re going to do: • You are going to edit the “autostart” file that keeps the list of applications you want to start automatically when you start your system. • This is a system file, so you will need to be “root” to edit this file. Yes, that’s all you need to do. Let’s get started: • Using the file manager, navigate to /etc/xdg/lxsession/lubuntu • Typically, you will see two files in this directory: · autostart · desktop.conf • From the main menu in the File Manager, select Tools > Open current folder as root · You will prompted for your password; enter your password and press Enter or click OK. · A new window will open giving you root access to these files. • Double-click the autostart file; it will open in a text editor You will likely see a few lines of text in this file; leave them alone. These are applications that are already in the list to “autostart” when you log in to Lubuntu; you are going to add your desired applications to this list. To add an application(s) to the list of programs to autostart, simply add the “launch name” (i.e. the name the system uses to launch the program) of a program you want to run when you start Lubuntu, preceded by an “@” symbol. For example, if you want AbiWord to automatically start when you log in to Lubuntu, simply add this line to the end of the existing list (if any) in the autostart file: @abiword Save the file. That’s it - you’re done! The next time you log into Lubuntu, AbiWord will start and be waiting for you to use. You can add as many applications as you want to this list to autostart. Likewise, if you no longer want an application to autostart, simply remove it from this list.

Lubuntu

Nous avons là un sujet pour lequel le processus de Lubuntu est la quintessence du « simple et léger »… et totalement PAS du tout intuitif ! Cette « révélation » est dans le contexte où des utilisateurs MS Windows migrent vers Lubuntu et, dans ce contexte, cette assertion est (à mon humble avis) vraie.

Je vous le dis tout de suite : il n'y a pas d'application en interface graphique pour ajouter un programme à la liste de démarrage. En outre, vous aurez besoin d'être « root » (administrateur) pour modifier cette liste. Et, sous Linux, il existe de nombreuses façons d'accomplir cette tâche très simple. Cela étant dit, je vais vous présenter une façon d'accomplir cette tâche et vous pourrez la modifier à votre convenance. Maintenant que les nécessaires « aveux » sont connus, nous allons voir comment il est incroyablement facile d'ajouter des applications qui se lancent au démarrage sous Lubuntu.

Voici un résumé de ce que vous allez faire : - Vous allez modifier le fichier « autostart » qui conserve la liste des applications que vous souhaitez lancer automatiquement lorsque vous démarrez votre système. - Il s'agit d'un fichier système, vous aurez donc besoin d'être « root » pour modifier ce fichier.

Oui, c'est tout ce qu’il y a à faire. Commençons : - En utilisant le gestionnaire de fichiers, accédez au répertoire /etc/xdg/lxsession/lubuntu. En règle générale, vous verrez deux fichiers dans ce répertoire : autostart et desktop.conf. - Dans le menu principal du gestionnaire de fichiers, sélectionnez Outils > Ouvrir le dossier actuel en tant que root. - Vous serez invité à saisir votre mot de passe : entrez votre mot de passe et appuyez sur Entrée ou cliquez sur OK. - Une nouvelle fenêtre s'ouvre vous donnant accès à ces fichiers en tant que « root ». Double-cliquez sur le fichier autostart : il s'ouvre dans un éditeur de texte.

Vous verrez probablement quelques lignes de texte dans ce fichier : ne les modifiez pas. Ce sont des applications qui sont déjà dans la liste pour se lancer automatiquement lorsque vous vous connectez à Lubuntu. Vous allez ajouter des applications de votre choix à cette liste.

Pour ajouter une application dans la liste des programmes à lancer au démarrage, il suffit d'ajouter le « nom de lancement » (c'est-à-dire le nom utilisé par le système pour lancer le programme) d'un programme que vous souhaitez exécuter lorsque vous démarrez Lubuntu, précédé d'un « @ ». Par exemple, si vous voulez lancer AbiWord automatiquement lorsque vous vous connectez à Lubuntu, il suffit d'ajouter cette ligne à la fin de la liste existante (le cas échéant) dans le fichier autostart :

@abiword

Enregistrez le fichier. C'est tout. Vous avez terminé ! La prochaine fois que vous vous connecterez à Lubuntu, AbiWord démarrera et attendra que vous l’utilisiez.

Vous pouvez ajouter autant d'applications que vous voulez à cette liste de démarrage automatique. De même, si vous ne voulez plus qu’une application démarre automatiquement, il suffit de la supprimer de cette liste.

Xubuntu In Xubuntu, having an application autostart when you log in is pretty straight-forward. You go to the Settings Manager and scroll down to the “System” section where you will want to open the icon called “Session and Startup.” Session and Startup allows you to customize the Xfce splash screen, and other behavior related to logging in, and includes a tab for “Application Autostart” which you will want to select. Inside this tab you’ll see a long list of predefined applications that you can choose to enable or disable upon log in. If the application you wish to autostart is not in the list, you can click the “Add” button to define this information yourself. The fields you define are similar to what you would fill out for customizing your launch in Gnome-Shell, but in a different order. You can also select any application already in the list and select “Edit” to see how that is configured – if you’re looking for tips on setting something up. If you ever wish to stop auto-starting an application, you can unselect the checkbox next to it in this menu and that will disable it; you can also fully remove the definition with the “Remove” button.

Xubuntu

Dans Xubuntu, lancer une application automatiquement lorsque vous vous connectez est assez simple. Allez dans le gestionnaire des paramètres et descendez jusqu'à la section « Système » où vous ouvrirez l'icône appelée « Session et démarrage ».

« Session et démarrage » vous permet de personnaliser l'écran de démarrage Xfce et d'autres comportements lors de la connexion, et comprend un onglet « Démarrage automatique » que vous allez sélectionner. À l'intérieur de cet onglet, vous verrez une longue liste d'applications prédéfinies que vous pouvez choisir d'activer ou de désactiver lors de la connexion.

Si l'application que vous souhaitez démarrer automatiquement n'est pas dans la liste, vous pouvez cliquer sur le bouton « Ajouter ». Les champs que vous devez renseigner sont similaires à ceux que vous devez remplir pour personnaliser un lancement au démarrage dans Gnome-Shell, mais dans un ordre différent. Vous pouvez également sélectionner n'importe quelle application déjà dans la liste et cliquer sur « Modifier » pour voir comment elle est configurée — si vous voulez un exemple de la manière de documenter les champs. Si jamais vous désirez arrêter l'auto-démarrage d'une application, vous pouvez désélectionner la case à cocher devant elle dans ce menu et il sera désactivé. Vous pouvez également supprimer complètement la ligne avec le bouton « Enlever ».

issue68/fermeture_des_fenetres.txt · Dernière modification : 2013/03/12 17:22 de auntiee