RISOLTO Programma microsoft in avvio automatico

PaolaB

Nuovo Utente
28
4
Ciao a tutti. Il mio scarso amore per la microsoft è sempre più scarso. Devo usare per lavoro Microsoft Teams. E vabbè. Il programma si mette in avvio automatico (cosa che odio). E io lo levo dall'avvio automatico tramite Gnome tweak tool. Riavvio il computer e non è in avvio automatico. Uso il programma, riavvio nuovamente e si è rimesso in avvio automatico. È una cosa un po' fastidiosa. Esiste un modo per toglierlo definitivamente dall'avvio automatico?
 

EmanueleC

Utente Èlite
5,630
1,838
CPU
Ryzen 5 2600x
Dissipatore
stock
Scheda Madre
ROG STRIX B450-F GAMING
HDD
OS: WD BLue SN570 500GB, Dati: 1TB Toshiba p300, Game: 2TB Toshiba P300
RAM
Corsair DDR4 3000 Mhz 2x8 GB
GPU
AMD Radeon RX 6600
PSU
Seasonic Focus Gold 450W
Case
BitFenix Neos
OS
Fedora Linux
Sicuramente mette un service all'avvio del sistema, controlla pure che ci sia qualche opzione sul software che mette l'avvio automatico.Puoi controllare i service attivi all'avvio con questo comando:
Codice:
systemctl list-units --type=service
 

PaolaB

Nuovo Utente
28
4
Questo è quello che salta fuori:

brt-journal-core.service loaded active running Creates ABRT problems fro
abrt-oops.service loaded active running ABRT kernel log watcher
abrt-xorg.service loaded active running ABRT Xorg log watcher
abrtd.service loaded active running ABRT Automated Bug Report
accounts-daemon.service loaded active running Accounts Service
alsa-state.service loaded active running Manage Sound Card State (
atd.service loaded active running Deferred execution schedu
auditd.service loaded active running Security Auditing Service
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
bluetooth.service loaded active running Bluetooth service
bolt.service loaded active running Thunderbolt system servic
chronyd.service loaded active running NTP client/server
colord.service loaded active running Manage, Install and Gener
crond.service loaded active running Command Scheduler
cups.service loaded active running CUPS Scheduler
dbus-:1.8-org.freedesktop.problems@0.service loaded active running dbus-:1.8-or>
dbus-broker.service loaded active running D-Bus System Message Bus
dbxtool.service loaded active exited Secure Boot DBX (blacklis
dracut-shutdown.service loaded active exited Restore /run/initramfs on
firewalld.service loaded active running firewalld - dynamic firew
fwupd.service loaded active running Firmware update daemon
gdm.service loaded active running GNOME Display Manager
geoclue.service loaded active running Location Lookup Service
gssproxy.service loaded active running GSSAPI Proxy Daemon
import-state.service loaded active exited Import network configurat
iscsi-shutdown.service loaded active exited Logout off all iSCSI sess
kmod-static-nodes.service loaded active exited Create list of static dev
livesys-late.service loaded active exited SYSV: Late init script fo
livesys.service loaded active exited LSB: Init script for live
lvm2-monitor.service loaded active exited Monitoring of LVM2 mirror
lvm2-pvscan@259:3.service loaded active exited LVM event activation on d
mcelog.service loaded active running Machine Check Exception L
ModemManager.service loaded active running Modem Manager
NetworkManager-wait-online.service loaded active exited Network Manager Wait O>
NetworkManager.service loaded active running Network Manager
polkit.service loaded active running Authorization Manager
rngd.service loaded active running Hardware RNG Entropy Gath
rpc-statd-notify.service loaded active exited Notify NFS peers of a res
rtkit-daemon.service loaded active running RealtimeKit Scheduling Po
smartd.service loaded active running Self Monitoring and Repor
sssd-kcm.service loaded active running SSSD Kerberos Cache Manag
sssd.service loaded active running System Security Services
switcheroo-control.service loaded active running Switcheroo Control Proxy
systemd-backlight@backlight:intel_backlight.service loaded active exited Load/>
systemd-fsck-root.service loaded active exited File System Check on Root
systemd-fsck@dev-disk-by\x2duuid-adb4ddd8\x2de526\x2d4493\x2daa7b\x2d27471e25bb>
systemd-fsck@dev-disk-by\x2duuid-BCBD\x2dCD02.service loaded active exited Fil>
systemd-fsck@dev-mapper-fedora_localhost\x2d\x2dlive\x2dhome.service loaded act>
systemd-journal-flush.service loaded active exited Flush Journal to Persiste
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-machined.service loaded active running Virtual Machine and Conta
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel F
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device N>
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and
systemd-udev-settle.service loaded active exited udev Wait for Complete De
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manage
systemd-update-utmp.service loaded active exited Update UTMP about System
systemd-user-sessions.service loaded active exited Permit User Sessions
udisks2.service loaded active running Disk Manager
upower.service loaded active running Daemon for power manageme
user-runtime-dir@1000.service loaded active exited User Runtime Directory /r
user@1000.service loaded active running User Manager for UID 1000
wpa_supplicant.service loaded active running WPA supplicant
Post unito automaticamente:

Naturalmente in questo momento è di nuovo in avvio automatico perché si è rimesso da solo lì.
 

pabloski

Utente Èlite
2,868
916
E' programmato apposta per settarsi in autostart. E ogni che parte va a verificare se è in autostart.

Troverai un file .desktop relativo a Teams in ~/.config/autostart/

Potresti metterci dentro un comando ( riga exec ) farlocco, oppure modificare l'exec, aggiungendo OPTIONS="noAutoStart=true"

E la cosa è un pò comica, perchè dai loro documenti risulta che l'autostart su Linux non funziona https://docs.microsoft.com/en-us/microsoftteams/known-issues#linux

Comunque la risposta si trova in quel file nella cartella autostart. Analizzandolo si può capire come intervenire.
 

PaolaB

Nuovo Utente
28
4
Il file teams.desktop ha questo:

[Desktop Entry]
Version=1.0
Type=Application
Encoding=UTF-8
Name=Microsoft Teams - Preview
Exec=/usr/bin/teams %U
Icon=teams
Terminal=false
StartupNotify=false
Categories=Network;Application;
MimeType=x-scheme-handler/msteams;
X-GNOME-Autostart-enabled=true
X-KDE-Protocols=teams

Ho sostituito in X-GNOME-Autostart-enabled ho messo false, ma poi il programma lo cambia e rimette true
Post unito automaticamente:

Risolto! Colpa mia. Ho scovato la voce nelle impostazioni. Grazie sempre per l'aiuto!
 
Ultima modifica:

rebellion

Utente Èlite
1,592
506
CPU
intel i5 9500
Dissipatore
cooler master hyper 212 evo
Scheda Madre
asrock b360 pro4
HDD
samsung 850evo 250GB+samsung 840pro 128GB+seagate barracuda 2TB+seagate barracuda 2TB
RAM
corsair vengeance lpx ddr4 2133MHz 2x4GB CL13
GPU
integrata intel hd graphics 630
Audio
integrata
Monitor
samsung ue55mu6500u
PSU
xfx pro series 550w core edition
Case
mastercooler
OS
archlinux x64 + gnome3.34.1 && windows10 pro x64
workaround: fai uno script bash in autostart che controlla fino a quando non trova che il tuo applicativo sia stato avviato eppoi lo killa senza pietà!:pulizia:
 

PaolaB

Nuovo Utente
28
4
Buono pure. Sarebbe una soluzione estrema ma funzionerebbe. Per ora per fortuna ho risolto. Comunque, il mio amore per microsoft diminuisce sempre di più.
 

pabloski

Utente Èlite
2,868
916
A questo punto è interessante capire se si può cambiare

Codice:
 Exec=/usr/bin/teams %U

con

Codice:
 Exec=/usr/bin/teams %U OPTIONS="noAutoStart=true"

Oppure mettere un programma farlocco al posto di teams, per esempio

Codice:
 Exec=/usr/bin/which

Non penso vada a guardare il contenuto del file o ricrei il file, ogni volta che parte. Oddio, conoscendoli, la seconda opzione non la scarterei.
 

Entra

oppure Accedi utilizzando
Discord Ufficiale Entra ora!