"no system tray detected on this system." Appears starting Gnome and Cinnamon in Oneiric 11.10; starting with Gnome Classic and Unity no problem at all. How to solve?
-
Did you install hplip? – Rinzwind Feb 06 '12 at 11:30
-
@Rinzwind: That question deserves some explanation. To my eyes, it seems like it could possibly be meant for another question. :) – Jo-Erlend Schinstad Feb 06 '12 at 12:06
-
Yes, I installed hplip; the problem is not the printer. Some explanation: The full pop-up starting Oneiric-desktop-choice Gnome", or "Cinnamon" is: "No system tray detected on this system. Unable to start, exiting ." – tonwillems.pc Feb 06 '12 at 13:12
-
@ Jo-Erlend Schinstad not if you knew what the problem is ;) – Rinzwind Feb 06 '12 at 13:14
-
1This issue seems to have returned on Ubuntu 20.04 after recent updates (Nov/Dec 2020). – moorepants Dec 29 '20 at 09:15
7 Answers
I had this error on every boot on ubuntu 18.04 Bionic Beaver after installing the drivers for my HP printer.
I just deleted the file
/etc/xdg/autostart/hplip-systray.desktop
to get rid of the problem.

- 263
- 2
- 6
-
3If you don't want to remove it, changing its extension also works, for example extension old:
/etc/xdg/autostart/hplip-systray.desktop.old
– alditis Jun 29 '20 at 13:28
In your start up programs there is a line regarding starting hplip
.
Change ...
sh -c "sleep 15; exec hp-systray"
to
sh -c "sleep 45; exec hp-systray"
and the problem is gone.
hplip
is expecting a system tray and that got removed (and was changed into notification area). All this does is postpone startup of hp-systray
so if your system is slow to respond this notice might come back and bite you again.
Found it here on Bugzilla (has a fix released
on 2011.11.25 (...)).
Besides the bug I found the following sources: Linuxquestions, Ubuntuforums

- 299,756
-
Thank ouy Rinzwind for your answer. BUT: where can I find that line in my Start-up programs "sh -c" etc.? I tried Grub, .hplip and the systray-itself,start-up programs. – tonwillems.pc Feb 08 '12 at 14:12
-
Not a problem @tonwillems.pc :) if the answer is what you needed do not forget to accept it ;) – Rinzwind Feb 08 '12 at 14:13
-
BUT: where can I find that line in my Start-up programs "sh -c" etc.? I tried Grub, .hplip and the systray-itself,start-up programs. – tonwillems.pc Feb 08 '12 at 16:00
-
see freecode's comment: http://askubuntu.com/questions/74031/startup-applications-missing-from-system-settings-screen-where-can-i-find-it – Rinzwind Feb 08 '12 at 16:07
-
Thanks a lot for last link given. Yesterday in my update was a patch for the "no system tray"-issue: I quote:PROPOSED UPDATE..... – tonwillems.pc Feb 14 '12 at 15:03
-
-
-
Which file in the startup are we supposed to change? Please provide a path. Got this error when trying to install hplip-3.18.9.run – lovedrinking Oct 28 '18 at 02:51
-
2@lovedrinking In Debian 8 (Jessie), you can find the command of interest in the
/etc/xdg/autostart/hplip-systray.desktop
file, where I changed the line of interest fromExec=hp-systray -x
toExec=/bin/sleep 15 && hp-systray -x
. End of problem, for me...dunno if this helps for Ubuntu... – Digger Sep 26 '20 at 19:03

- 7,537
-
To bad we can't make it work, though. I was able to restart it and I see the icon, but the icon is not reacting to my clicks... – Alexis Wilke Apr 05 '20 at 18:04
-
2For me this is the best solution. Even with a 90 second delay in
/etc/xdg/autostart/hplip-systray.desktop
the problem was not solved for Ubuntu 20.10. – H2ONaCl Mar 16 '21 at 05:50 -
Not too sure what happens, but I can now access the menu, only it takes some time to wake up. I do not know how much time. But just after I restarted, the icon doesn't respond for a while. – Alexis Wilke Dec 12 '21 at 00:20
sudo apt-get install hplip hplip-gui
will install a newer release of hplip
that might fix the issue.
See
- https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/335662
- https://answers.launchpad.net/hplip/+question/207699
for more discussion of the issue

- 624
-
https://developers.hp.com/hp-linux-imaging-and-printing what does it have to do with printers? – Darius.V Aug 03 '23 at 14:49
note: you can navigate to /etc/xdg/autostart
then look for the file: hplip-systray.desktop
In the meantime open a terminal and login as root.
write in terminal:
sudo rm hplip-systray.desktop
then drag hplip-systray.desktop
file and drop it in terminal and hit enter. That's all.
note: or simply login as root in terminal and write:
sudo rm /etc/xdg/autostart/hplip-systray.desktop
and hit enter
-
I navigated to /etc/xdg/autostart/ and then ran sudo rm -R hplip-systray.desktop which was by far simpler. No error then appeared on reboot. – graham Mar 26 '19 at 19:19
-
1I navigated to /etc/xdg/autostart/ and then ran sudo rm -R hplip-systray.desktop which was by far simpler. No error then appeared on reboot. This also worked on 20.04.1 – graham Dec 15 '20 at 11:16
Run this command:
sudo apt-get install hplip hplip-gui
When prompted, choose Yes to install new version/release. After installation, reboot your PC/laptop, and you will see HP GUI in your upper right next to your wifi connection icon.
This was tested on Ubuntu 19.04

- 5,509

- 101
https://forums.linuxmint.com/viewtopic.php?f=208&t=209791&p=1752733#p1752733
I had been using MenuLibre (aka 'Menu Editor') to clean up my xdg applications, as there were a bunch of them in bad state after years of hacking.
(BTW, the Menu bar | Menu Editor | Parsing Error Log
command produces a nice list of application desktops that are broken in some way or have other errors.)
So I had edited ~/.local/shared/applications/cinnamon.desktop
just to simply give it a better comment, i.e. that if run it would restart cinnamon. (As I can now see, it also starts cinnamon, like initially.)
But MenuLibre had revised it further, and without telling me, and this had broken my ability for Cinnamon's panel and menu to start up. The background was black, and I could only operate on GUI tool, the most recent one, and there were no close buttons on anything. ..
(But, note I could right click on the screen and get a terminal and also I could use Ctl-Alt-F1
to open a tty.)
To find the solution to what had broken I had to restore ~/.local/shared/applications
. Then little at a time with divide and conquer I located the file that caused the issue, that is after a whole bunch of painful reboots to test it.
tl;dr: SOLUTION: Restoring this file fixed things:
~/.local/shared/applications/cinnamon.desktop

- 1,808