Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Application lance en double sur le Rasp Pi3
#1
Salut,
Je suis sous Raspian jessie sur un Raspberry Pi3.
J'ai dévellopé un programme et je souhaite qu'il démarre au lancement du Pi. j'ai donc mis un petit fichier dans ./config/autostart dont voici le code:
Code :
[== Indéfini ==]
[Desktop Entry]
Type=Application
Name=A350BoitierBbx
Exec=/home/pi/Documents/ProjRaspberry/BbxA350Project/Sources/bin/Release/boitierBbxA350
Terminal=true
Jusque là ça fonctionne, sauf que, il se lance 2 fois... Et en y regardant de plus près, j'ai l'impression que plein d'autres programmes sont lancés 2 fois....
Je vous mets 2 images...
[Image: open?id=0B5T2aeLpdy1OUHVPZWNXX2N1bE0]
[Image: open?id=0B5T2aeLpdy1OUWpNS3FPcXhHRjQ]

Merci pour votre aide
Répondre
#2
Plutot que de vous mettre des images, voici l'arborescence des processus avec pstree. Mon application est boitierBbxA350 et on voit bien 2*... et sur pas mal d'autres applications...
Code :
[== Indéfini ==]
systemd─┬─Xtightvnc
        ├─avahi-daemon───avahi-daemon
        ├─bluetoothd
        ├─2*[boitierBbxA350]
        ├─cron
        ├─3*[dbus-daemon]
        ├─2*[dbus-launch]
        ├─dhcpcd
        ├─gconfd-2
        ├─2*[gvfs-afc-volume─┬─{gdbus}]
        │                    ├─{gvfs-afc-volume}]
        │                    └─{pool}]
        ├─2*[gvfs-goa-volume─┬─{gdbus}]
        │                    └─{pool}]
        ├─2*[gvfs-gphoto2-vo─┬─{gdbus}]
        │                    └─{pool}]
        ├─2*[gvfs-mtp-volume─┬─{gdbus}]
        │                    └─{pool}]
        ├─2*[gvfs-udisks2-vo─┬─{gdbus}]
        │                    ├─{gmain}]
        │                    └─{pool}]
        ├─2*[gvfsd─┬─{gdbus}]
        │          └─{pool}]
        ├─gvfsd-fuse─┬─{gdbus}
        │            ├─{gvfs-fuse-sub}
        │            └─2*[{gvfsd-fuse}]
        ├─2*[gvfsd-trash─┬─{gdbus}]
        │                ├─{gmain}]
        │                └─{pool}]
        ├─konsole─┬─bash───pstree
        │         └─{QProcessManager}
        ├─lightdm─┬─Xorg─┬─{llvmpipe-0}
        │         │      ├─{llvmpipe-1}
        │         │      ├─{llvmpipe-2}
        │         │      └─{llvmpipe-3}
        │         ├─lightdm─┬─lxsession─┬─lxpanel─┬─{gdbus}
        │         │         │           │         ├─{gmain}
        │         │         │           │         └─{menu-cache-io}
        │         │         │           ├─lxpolkit───{gdbus}
        │         │         │           ├─openbox                                                                                                                                                                                            
        │         │         │           ├─pcmanfm─┬─{gdbus}                                                                                                                                                                                  
        │         │         │           │         └─{gmain}                                                                                                                                                                                  
        │         │         │           ├─ssh-agent                                                                                                                                                                                          
        │         │         │           ├─{gdbus}                                                                                                                                                                                            
        │         │         │           └─{gmain}                                                                                                                                                                                            
        │         │         ├─{gdbus}                                                                                                                                                                                                        
        │         │         └─{gmain}                                                                                                                                                                                                        
        │         ├─{gdbus}                                                                                                                                                                                                                  
        │         └─{gmain}                                                                                                                                                                                                                  
        ├─login───bash                                                                                                                                                                                                                      
        ├─2*[menu-cached─┬─{gdbus}]                                                                                                                                                                                                          
        │                └─{gmain}]                                                                                                                                                                                                          
        ├─ntpd                                                                                                                                                                                                                              
        ├─polkitd─┬─{gdbus}                                                                                                                                                                                                                  
        │         └─{gmain}                                                                                                                                                                                                                  
        ├─rsyslogd─┬─{in:imklog}                                                                                                                                                                                                            
        │          ├─{in:imuxsock}                                                                                                                                                                                                          
        │          └─{rs:main Q:Reg}                                                                                                                                                                                                        
        ├─rtkit-daemon───2*[{rtkit-daemon}]                                                                                                                                                                                                  
        ├─2*[ssh-agent]                                                                                                                                                                                                                      
        ├─sshd                                                                                                                                                                                                                              
        ├─2*[start-pulseaudi───xprop]                                                                                                                                                                                                        
        ├─systemd───(sd-pam)                                                                                                                                                                                                                
        ├─systemd-hostnam                                                                                                                                                                                                                    
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-udevd
        ├─thd
        ├─udisksd─┬─{cleanup}
        │         ├─{gdbus}
        │         ├─{gmain}
        │         ├─{pool}
        │         └─{probing-thread}
        ├─wpa_supplicant
        └─xstartup───lxsession─┬─lxpanel─┬─{gdbus}
                               │         ├─{gmain}
                               │         └─{menu-cache-io}
                               ├─lxpolkit───{gdbus}
                               ├─openbox
                               ├─pcmanfm─┬─{gdbus}
                               │         └─{gmain}
                               ├─{gdbus}
                               ├─{gmain}
                               └─{pool}
Répondre


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)

A propos de Communauté francophone RPi

Communauté francophone RPi est un forum d'aide et de partage autour du Raspberry Pi et des micro-ordinateurs.