Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


Closed Thread
  Search this Thread
Old 09-10-2005, 01:15 AM   #1
LQ Newbie
Registered: Sep 2005
Location: California
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Add an Icon to The System Tray

How can I add an icon to the system tray by a bash script or C++ program?

For example I had written a bash script which, checks wheter the internet connection is available or not (for example by pinging a site); And if it is available I want to add an icon in the tray to indicate this; How can I do it?
I think X should have an interface for it...

And also how can I do it in C or C++ program? As I check QT toolkit doesn't have an interface for this;
Old 09-10-2005, 11:00 AM   #2
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
Try looking at the code for the Gaim desktop icon plugin.
Old 09-13-2005, 04:14 AM   #3
LQ Newbie
Registered: Sep 2005
Location: California
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
I have found the answer; For example in KDE

"ksystraycmd" run a program and add an icon for it in the tray;
see "ksystraycmd --help-kde"

Old 09-13-2005, 06:11 AM   #4
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Q re: KMail system tray icon daihard Linux - Software 0 09-30-2005 01:51 PM
Add an Icon to The System Tray hhamid Programming 4 09-13-2005 04:16 AM
System Tray - Delete Non-Responsive Icon easyE Linux - General 3 05-03-2005 10:27 AM
Lost my SUSEwatcher icon in system tray naps SUSE / openSUSE 2 11-09-2004 10:41 AM
AMSN icon in system tray, help BlenderGuy Linux - Newbie 6 03-04-2004 11:01 PM

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration