1

How do I make a program (in this case, Solaar) appear in the System Settings panel in Ubuntu 16.04?

The package I want to add is located at /usr/bin/solaar. I tried taking a look at /usr/share/applications/solaar.desktop based on this question(--PLEASE READ), but nothing in the Categories entry looks exactly like what they have in the example, otherwise I would have already changed it (and have tried). Here's the whole file:

[Desktop Entry]
Name=Solaar
Comment=Logitech Unifying Receiver peripherals manager
Exec=solaar
Icon=solaar
StartupNotify=true
Terminal=false
Type=Application
Keywords=logitech;unifying;receiver;mouse;keyboard;
Categories=Utility;GTK;
# This line is provided by the manufacturer, but doesn't produce
# the desired effect when uncommented:
#Categories=Utility;GTK;Settings;HardwareSettings;
# I created this line based on the linked post, but it doesn't work:
#Categories=Utility;GTK;Settings;X-GNOME-Settings-Panel;HardwareSettings;
#X-GNOME-Settings-Panel=Solaar

...when I modified the file, I was sure to sudo update-desktop-database as indicated in the linked question.

Bonus: I'd like the item to appear under "Hardware."

Chaim Eliyah
  • 1,169
  • 1
  • 9
  • 21

1 Answers1

1

Did you make it look like this...

[Desktop Entry]
Name=Solaar
Comment=Logitech Unifying Receiver peripherals manager
Exec=solaar
Icon=solaar
StartupNotify=true
Terminal=false
Type=Application
Keywords=logitech;unifying;receiver;mouse;keyboard;
#Categories=Utility;GTK;
Categories=Utility;GTK;Settings;X-Unity-Settings-Panel;HardwareSettings;
X-Unity-Settings-Panel=Solaar

Result:

enter image description here

Chaim Eliyah
  • 1,169
  • 1
  • 9
  • 21
heynnema
  • 70,711
  • Thank you, I did. I just tried again, copy-pasting these values in, in case mine had a typo. Unfortunately, it doesn't seem to work the way the linked question indicates. – Chaim Eliyah Nov 21 '16 at 00:37
  • And you commented out both existing Categories statements, and uncommented the last two lines that you added? Your code doesn't show that. – heynnema Nov 21 '16 at 00:40
  • True, I am trying to show my file pre-edits (with the things I've tried commented out) but I think I may have found the answer in the linked question. Check this out: http://askubuntu.com/a/647746/253482 -- I'll try it and if it works we can update your answer. – Chaim Eliyah Nov 21 '16 at 00:42
  • Okay I suggested an edit! It worked! – Chaim Eliyah Nov 21 '16 at 00:45
  • Bravo! Live and learn! – heynnema Nov 21 '16 at 00:49
  • ...and eat when your blood sugar's low. Thank you for helping me figure this out. – Chaim Eliyah Nov 21 '16 at 00:49
  • Question... so now, when you click on Solaar in the System Settings, what do you get if: 1) Solaar is not running, and 2) Solaar is already running? – heynnema Nov 21 '16 at 00:52
  • If it's already running, I get the Solaar control panel. If I killall Solaar, the battery indicator disappears, and when I click on it from System Settings, the first time it appears to do nothing (but the battery indicator reappears), and the second click brings up the Solaar control panel. – Chaim Eliyah Nov 21 '16 at 00:54
  • This solution didn't work on Ubuntu 20.10, with Gnome. I don't have solaar entry in gnome-control-center. – harobed Mar 28 '21 at 10:06
  • @harobed This answer applies to 16.04. In 20.10, Solaar now appears in the system tray, and in the list of Applications. – heynnema Mar 28 '21 at 13:53