LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Closed Thread
 
Search this Thread
Old 09-10-2005, 12:15 AM   #1
hhamid
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, 10:00 AM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
Try looking at the code for the Gaim desktop icon plugin.
 
Old 09-13-2005, 03:14 AM   #3
hhamid
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, 05:11 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,174
Blog Entries: 4

Rep: Reputation: 428Reputation: 428Reputation: 428Reputation: 428Reputation: 428
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.

http://www.linuxquestions.org/rules.php
 
  


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 12:51 PM
Add an Icon to The System Tray hhamid Programming 4 09-13-2005 03:16 AM
System Tray - Delete Non-Responsive Icon easyE Linux - General 3 05-03-2005 09:27 AM
Lost my SUSEwatcher icon in system tray naps Suse/Novell 2 11-09-2004 09:41 AM
AMSN icon in system tray, help BlenderGuy Linux - Newbie 6 03-04-2004 10:01 PM


All times are GMT -5. The time now is 03:39 AM.

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