LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 07-13-2010, 07:00 AM   #1
chuafengru
LQ Newbie
 
Registered: Jun 2010
Posts: 28

Rep: Reputation: 0
Widget on desktop to display status


Hi guys,

Is there any way where i can program a widget to display the status of different services. This widget should also be able to auto-update the service status if the service is being toggled with.

Regards.
 
Old 07-13-2010, 07:50 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
What distro/version?

Suggest you read the forum rules/how to ask questions - for Ubuntu you can use screenlets; for RHEL like distros gdesklets.
 
Old 07-13-2010, 06:37 PM   #3
chuafengru
LQ Newbie
 
Registered: Jun 2010
Posts: 28

Original Poster
Rep: Reputation: 0
Hi,

im sorry, i did do a research on gdesklet, but i cant seem to find a tutorial on how to create a gdesklet widget. and im using Fedora 13 and running an xfce UI.

Any intro on how to start off on programming a gdesklet widget?
 
Old 07-14-2010, 01:24 AM   #4
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

There's not a lot of reading material out there on gdesklets; what I did was install gdesklets and front it with Conky (at the suggestion of one of the LQ Forum guru's) - which worked out quite nicely. There's a lot of stuff you can read as well as sample conky config files you can try out (Google is your friend). All I did was install gdesklets and enable a few basic features.

Not sure if you're using GNOME/KDE; what I've also found is that KDE has by default a whole lot of cool widgets that you can add to your desktop - maybe check those out as well.
 
Old 07-14-2010, 06:38 AM   #5
chuafengru
LQ Newbie
 
Registered: Jun 2010
Posts: 28

Original Poster
Rep: Reputation: 0
Gdesklets cant start

Okay, thanks.

however now i encounter a new problem, where i cant even do a 'gdesklets start' in the terminal, it shows:

No protocol specified
Traceback (most recent call last):
File "/usr/bin/gdesklets", line 3, in <module>
from main import client, DISPLAY, HOME, USERHOME
File "/usr/lib/gdesklets/main/__init__.py", line 3, in <module>
import utils
File "/usr/lib/gdesklets/utils/__init__.py", line 3, in <module>
import gtk
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
_init()
File "/usr/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
_gtk.init_check()
RuntimeError: could not open display

any ideas how to solve this ?
 
Old 07-14-2010, 07:45 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
You need to run it whilst logged into the GUI (that is run level 5) - not a remote terminal session - the error is given because you're running it from an SSH session into your machine
 
  


Reply

Tags
linux, widget


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
Drag from browser to desktop and create widget linuxcritic Mandriva 1 04-10-2010 07:14 PM
Issue with KDE4.1 not saving my desktop widget configuration after reboot ReginaFortis Linux - Newbie 9 09-04-2008 02:06 PM
Is there a way to put a calender on the desktop (maybe as a widget) in KDE4? Cinematography Linux - Desktop 4 06-28-2008 07:33 PM
A good simple text display widget in GTK (not Label) vharishankar Programming 3 05-18-2006 06:44 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
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