Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Run program from system tray in Stretch/Plasma5

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
roseway
Posts: 1528
Joined: 2007-12-31 22:50
Location: Kent, UK
Has thanked: 3 times
Been thanked: 4 times

Run program from system tray in Stretch/Plasma5

#1 Post by roseway »

This howto uses Thunderbird as an example, but should work with other programs which don't have built-in system tray capability. With appropriate modifications the method should work with other desktop systems.

1. Install the program

2. Install kdocker

3. Check that it works: type

Code: Select all

kdocker thunderbird
4. At this stage the system tray icon will probably be hidden, so click on the "Show hidden icons" button and select Docker from the displayed list. Thunderbird will be displayed and can be used normally. Click on its Minimize button, and it becomes a hidden icon again. Open it again and click its Close button. The program closes down.

5. Using a text editor, create a desktop entry in ~/.config/autostart as follows:

Code: Select all

[Desktop Entry]
Comment=Start Thunderbird
Exec=kdocker -l thunderbird
Icon=/usr/share/icons/hicolor/32x32/apps/thunderbird.png
Name=Thunderbird
StartupNotify=true
Terminal=false
Type=Application
Version=1.0
Save this in ~/.config/autostart as thunderbird.desktop

6. Mark the desktop entry as executable:

Code: Select all

chmod +x ~/.config/autostart
7. (Double) click on thunderbird.desktop to start the program as a hidden icon again. Right-click on the "Show hidden icons" button and select "System tray settings". Select the Entries section, locate KDocker in the list, and change its visibility to "Shown". Click "Apply".

That's it. When you reboot, or log out and in again, the thunderbird icon should appear in the system tray. When you minimize thunderbird it will return to the system tray.
Eric

Post Reply