By default, software you have added or automatically added to the boot menu will be started in all desktop environments.
Have you ever thought about making an application automatically start in a specific desktop environment? For example, mailnag is a gnome shell mail notifier. If you use it in unity, a very ugly dialog box will be displayed. This article describes how to enable an application to automatically start in a specific desktop environment, such as gnome, unity, and KDE. By using this method, you can enable mailnag to automatically start only when you log on to Gnome.
Compile the. desktop file automatically.~ /. Config/autostart Or /Etc/xdg/autostart.
Add
Onlyshowin = gnome; or
Onlyshowin = unity;
You can add
Onlyshowin = gnome; unity;
You can also use the notshowin command to disable a software from being started in a specific desktop environment.
This method is also applicable to menu editing./Usr/share/Applications. Desktop file.
For gnome, if onlyshowin = gnome is addedGnome ShellAndGnome classic (fallback)Are started.
If you only want to start it under GNOME fallback, you can add
Autostartcondition = gnome3 if-session gnome-Fallback
For gnome shell, replace gnome-Fallback with Gnome
The above method must be used in all applications, because some software will overwrite. Desktop files, such as Dropbox and gmailwatcher.