Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th October 2009, 06:23 AM
yzpdsg Offline
Registered User
 
Join Date: Jan 2009
Posts: 102
windows_vistafirefox
How to run xclock automatically when I log in?

Hi,everyone!

It's a problem that the time display of fedora is too small for me.So that I'd like to try xclock.However,I don't know how to run this program automatically as soon as I log in to my system.I got stucked

I've tried to modify the .bashrc file in my home directory.

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions
result=`ps -ef|awk '{print $8}'|grep xclock` #check whether the xclock is running,I want only one xclock one time:-)
if [ "$result" = "xclock" ];then
: #I don't know whether it is right to write ':' here.Actually,the system stuck after I input my name and password.

else
xclock
fi
Reply With Quote
  #2  
Old 20th October 2009, 06:28 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
linuxfedorafirefox
Run the command
gnome-session-properties
and add the command.

You can get the control window from System->Preferences->Personal->Sessions

The the full command ...
/usr/bin/xclock
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 20th October 2009, 06:30 AM
ozjd's Avatar
ozjd Online
Registered User
 
Join Date: Feb 2008
Location: Sydney Australia
Age: 57
Posts: 2,228
linuxfedorafirefox
You may be able to change the display of the standard clock but to start any app when you log in use sessions in Gnome. Can't tell exactly how as I don't have Gnome. If you use any other desktop they have a similaiar options, eg. Settings - Autostart in KDE.

Edit. Too slow got beaten again.
Reply With Quote
  #4  
Old 20th October 2009, 06:30 AM
sidebrnz's Avatar
sidebrnz Offline
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,105
linuxfedorafirefox
That won't work for a number of reasons. First, ~/.bashrc isn't used when you log in unless you're running in a terminal or console. Second, even if it did, everything would hang until you managed to exit xclock. What you'd want is this:

xclock &

to put it in the background. The right way to do is is (I'm assuming Gnome here and F 10; things are a tad different in F 11.) is to click on System->Preferences->Personal->Sessions and add it to your startup programs.

[Edit] We all posted together; the first part of my response is to the Original Poster.
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
Reply

Tags
automatically, log, run, xclock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I log in automatically, imksa Using Fedora 3 13th April 2009 12:59 PM
X doesn't run automatically :( nutter426 Using Fedora 2 25th January 2008 10:19 AM
xclock (analog clock) for the gnome-panel? SHtRO Using Fedora 2 20th May 2006 01:42 AM
How to run source automatically? kqyym Using Fedora 3 19th September 2005 03:50 AM
Can yum run automatically ? mha Using Fedora 6 5th March 2005 04:22 AM


Current GMT-time: 14:17 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat