LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-02-2009, 08:17 AM   #1
lqv
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 1
Which files in Gnome to modify in order to set Preferences manually?


I have Ubuntu 8.04. I would like to modify Preferences directly rather than through the System menu in Gnome. I would like to modify/write scripts to:
1) launch gnome-terminal on start up as when I do that via the System->Preferences->Sessions it appears without a title bar so I am unable to move the terminal
2) to set the idle time for the screen saver so I can just execute a script rather than setting it via System->Preferences->Screensaver (as I change it daily to run a video for news in the morning and then decrease the idle time again after it's done)

Does anyone know which files/settings have to be modified in order to do the above?

Thanks.
 
Old 01-04-2009, 05:55 AM   #2
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
1) what you say is strange (it should work). Anyhow, you can run a command when X starts by adding that command to a file in your home directoy named .xinitrc

2) you can look at the configuration options using "gconf-editor", in apps/gnome-screensaver. You can modify the options from the command line by using (this sets the timeout to 10 minutes, you can check gconftool-2 --help-all for more info):

Code:
gconftool-2 --type int -s "/app/gnome-screensaver/idle_delay" 10
 
Old 01-04-2009, 10:07 AM   #3
Sargek
Member
 
Registered: Jan 2003
Location: San Antonio, Texas
Distribution: Debian testing
Posts: 416

Rep: Reputation: 36
To move a window without a title bar, hold down left "alt" and drag the window with the mouse. Most Gnome settings can be modified using the gconf-editor tool if you are curious. Be careful though, the settings are instantaneous
 
Old 01-06-2009, 10:36 AM   #4
lqv
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Thanks for the info. Yes I found out about the gconftool and created an alias so I could execute the command more easily.

There doesn't appear to be an .xinitrc file on my computer so I will have to check out the start-up files that are available. Does anyone know which files that the System->Preferences->Sessions modifies?
 
Old 01-06-2009, 12:13 PM   #5
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
On my system gnome-session-properties creates a file in the directory ".config/autostart". I found out this by doing:

Code:
strace -e open,write -s 10000 gnome-session-properties 2>&1 | grep -E "open|yyyy"
And then adding a command named yyyy to the session (for testing). Looking in the console you will see where that information is written.

About .xinitrc, you can create it yourself, it doesn't have to be there.
 
  


Reply

Tags
gnome, screensaver, startup, ubuntu



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
Anjuta - Can't Set Preferences n5kzw Programming 0 12-03-2007 09:38 PM
Can users set preferences for IMAP in Dovecot? whthorse25 Linux - Newbie 1 11-08-2007 08:33 AM
How to manually modify the content of the K menu in KDE? pujolasdf Linux - Software 2 03-27-2005 11:26 AM
Gnome Preferences acidblue Fedora 2 02-07-2005 11:11 AM
Modify Boot order in Redhat 7.1 busybee Linux - Software 9 11-06-2001 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:11 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
Open Source Consulting | Domain Registration