====== Créer des fichiers de démarrage automatique suite à une connexion X ====== * Objet : Créer des fichiers de démarrage automatique suite à une connexion X * Niveau requis : {{tag>débutant avisé}} * Commentaires : Script python, gtk3. Paquet debian disponible. * Débutant, à savoir : [[:doc:systeme:commandes:le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !.]] :-) * Suivi : {{tag>à-placer}} * Création par [[user>cyrille]] 30/11/2020 * Testé par [[user>cyrille]] 30/11/2020. Testé sous DEBIAN SID, FreeBSD 12, Linux Mint * Commentaires sur le forum : [[https://debian-facile.org/viewtopic.php?pid=349383 | Lien vers le forum concernant ce tuto]] * Sources : [[https://github.com/CyrilleBiot/create_autostart_launcher| Git create_autostart_launcher]] ===== Introduction ===== Proposition d'un utilitaire **python** / **GTK** afin de créer un script de démarrage automatique suite à une connexion au gestionnaire X. Fonctionne quelque soit le Display Manager. ===== Installation ===== ==== Dépendances requises ==== **python3, python3-gi, python3-pil** L'installateur de paquet installera lui même les dépendances nécessaires. ==== Modification système ==== Création du fichier d'autostart dans le répertoire courant de l'utilisateur /home/$USER/.config/autostart/LeNomDuLanceur.desktop __**Structure de ce fichier:**__ [Desktop Entry] Type=Application Name= Exec= Icon= Comment= X-GNOME-Autostart-enabled=true ===== Contenu du .deb ===== tree create-autostart-launcher create-autostart-launcher ├── debian │   ├── changelog │   ├── compat │   ├── control │   ├── copyright │   ├── install │   ├── postinst │   ├── prerm │   └── rules └── source ├── apropos.png ├── create_autostart_launcher.6.gz ├── create_autostart_launcher.desktop └── create_autostart_launcher.py 2 directories, 12 files ===== Screenshoot ===== {{/file-R2b6ab8e364a2d3b5a49cbf6a39b43848.png}} {{/file-Rf3a4b1abad678a9938ee648a9d7e8f4c.png}} {{/file-Rce334f9e0b42004b9ce0d9b3b51fbf81.png}} {{/file-R9f298431e6c677d034972927e2270796.png}} ===== Installation ===== Toujours prendre la dernière version du GIT wget https://github.com/CyrilleBiot/create_autostart_launcher/raw/main/create-autostart-launcher_1.2.5_all.deb # dpkg -i create-autostart-launcher_1.2.5_all.deb Au besoin # apt-get install -f ===== Suppression ===== # dpkg -r create-autostart-launcher ===== Remonter un bug ===== [[https://github.com/CyrilleBiot/create_autostart_launcher/issues|Remonter un bug]]