LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2008, 01:27 PM   #1
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Rep: Reputation: 30
How Can I Make Gnome Menu Run Faster ??


I'm running Ubuntu 7.10 and I made my Gnome menu run faster through the following instructions. However, this is only temporary. How do I make this permanent?


1. Create a file named .gtkrc-2.0 in your home directory

cd
touch .gtkrc-2.0
echo "gtk-menu-popup-delay = 0"| tee -a .gtkrc-2.0

2. Logout and login again

I have tested with a value gtk-menu-popop-delay = 2000 before to try gtk-menu-popop-delay = 0 to see what is different in effect.



After I do this, the menu runs alot faster. But, when I turn off then on my computer, this effect is gone. How do I make this permanent?

.

Last edited by taurusx5; 07-28-2008 at 01:28 PM.
 
Old 07-28-2008, 05:23 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
If this is only temporary this would mean that the file ~/.gtkrc-2.0 is deleted everytime you log out and back in.
Though this is unlikely you should check if that file exists and also what is in it prior to your command.

echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
would do the same thing - as well as using any editor and writing this (gtk-menu-popup-delay = 0)to the file and save it.

gconf-editor (should be available via menu as "configuration-editor") would be worth a look as it is the way to configure the behaviour of the gnome desktop. I did not find the relevant item on a quick search, but sometimes one needs to create new keys...
Maybe looking in this direction will yield some result.
 
Old 07-28-2008, 05:39 PM   #3
gullit
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Rep: Reputation: 15
Hey, you're not running Ubuntu from a LiveCD, are you ?
LiveCD doesn't save the changes that you do.
 
Old 07-28-2008, 06:51 PM   #4
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
If this is only temporary this would mean that the file ~/.gtkrc-2.0 is deleted everytime you log out and back in.
Though this is unlikely you should check if that file exists and also what is in it prior to your command.

echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0
would do the same thing - as well as using any editor and writing this (gtk-menu-popup-delay = 0)to the file and save it.

gconf-editor (should be available via menu as "configuration-editor") would be worth a look as it is the way to configure the behaviour of the gnome desktop. I did not find the relevant item on a quick search, but sometimes one needs to create new keys...
Maybe looking in this direction will yield some result.
jomen, what do you suggest I do to fix this problem? I want to be able to run my menus fast. You mentioned this to me: echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0.... where do I put this?
 
Old 07-28-2008, 06:58 PM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
You issue this command (thats what it is...) from a terminal such as gnome-terminal.
Or you use any editor you like - put the line "gtk-menu-popup-delay = 0" into it and save the file as ~/.gtkrc-2.0 ... without the quotation-marks in this case
(that is: .gtkrc-2.0 in your /home/<username> directory)

Last edited by jomen; 07-28-2008 at 07:07 PM.
 
Old 07-28-2008, 07:33 PM   #6
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
You issue this command (thats what it is...) from a terminal such as gnome-terminal.
Or you use any editor you like - put the line "gtk-menu-popup-delay = 0" into it and save the file as ~/.gtkrc-2.0 ... without the quotation-marks in this case
(that is: .gtkrc-2.0 in your /home/<username> directory)
Hi, jomen. I did like you said, I entered in terminal the following:

cd
touch .gtkrc-2.0
echo "gtk-menu-popup-delay = 0" >> ~/.gtkrc-2.0

However, ubuntu woldn't allow me to name a file called, "~/.gtkrc-2.0". An error message pops up and says it can't name files with characters such as "/".

Any other suggestions?
 
Old 07-28-2008, 07:47 PM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Do it logged in as you then (as a normal user) - if you haven't done so already.
issue: "cd" before you try - which will bring you to /home/<username>

"touch" is not neccesary (and I did not tell you to use it ... but that should not matter) - if the file exists already, the line will be appended to the file.

Or use an editor on the file .gtkrc-2.0 instead.

If the command really does not work than I can only say: Ubuntu is wiered. It works for me every time I use this way of appending some line to some file.

Check with:
cat ~/.gtkrc-2.0
and you should see what is in there

Good Night

Last edited by jomen; 07-28-2008 at 07:49 PM.
 
Old 07-29-2008, 11:03 AM   #8
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
Do it logged in as you then (as a normal user) - if you haven't done so already.
issue: "cd" before you try - which will bring you to /home/<username>

"touch" is not neccesary (and I did not tell you to use it ... but that should not matter) - if the file exists already, the line will be appended to the file.

Or use an editor on the file .gtkrc-2.0 instead.

If the command really does not work than I can only say: Ubuntu is wiered. It works for me every time I use this way of appending some line to some file.

Check with:
cat ~/.gtkrc-2.0
and you should see what is in there

Good Night
Ok, I entered the following as you suggested:

cd
touch .gtkrc-2.0
echo "gtk-menu-popup-delay = 0" >> .gtkrc-2.0


It still doens't work. Also, Ubuntu still won't allow me to create a file named, ~/.gtkrc-2.0 because as I've said before, it won't accept files named with special characters like, "/". So, what should I do now?

.
 
Old 07-29-2008, 12:35 PM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
That sounds really ... incredible (no offense, please!)
Can you create any file?
example:
Code:
touch testfile
ls -al | grep testfile
rm testfile
ls -al | grep testfile
The first command creates an empty file "testfile"
The second lists the directory and will list only that file which should have just been created
The third removes it.
The fourth checks again for the existence of that file - which will be gone now.

Please test that and post what output you get from the second and fourth command.
 
Old 07-29-2008, 01:54 PM   #10
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
That sounds really ... incredible (no offense, please!)
Can you create any file?
example:
Code:
touch testfile
ls -al | grep testfile
rm testfile
ls -al | grep testfile
The first command creates an empty file "testfile"
The second lists the directory and will list only that file which should have just been created
The third removes it.
The fourth checks again for the existence of that file - which will be gone now.

Please test that and post what output you get from the second and fourth command.
Hi, jomen. Here's the results of the testfile you had asked me to input:

x@xx:~$ touch testfile
x@xx:~$ ls -al | grep testfile
-rw-r--r-- 1 x x 0 1987-12-31 22:25 testfile
x@xx:~$ rm testfile
x@xx:~$ ls -al | grep testfile
x@xx:~$
 
Old 07-29-2008, 04:31 PM   #11
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
ok. - so you can create files just fine (as is to be expected).
next try in the same fashion:
Code:
cd
ls -al .gtkrc-2.0
cat .gtkrc-2.0
echo "gtk-menu-popup-delay = 0" >> .gtkrc-2.0
cat .gtkrc-2.0
Please give the output of each and all those commands.
Please also tell whether the first "x" on the line is actually saying: "root" - or is this your username?

Last edited by jomen; 07-29-2008 at 04:35 PM.
 
Old 07-29-2008, 05:25 PM   #12
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
ok. - so you can create files just fine (as is to be expected).
next try in the same fashion:
Code:
cd
ls -al .gtkrc-2.0
cat .gtkrc-2.0
echo "gtk-menu-popup-delay = 0" >> .gtkrc-2.0
cat .gtkrc-2.0
Please give the output of each and all those commands.
Please also tell whether the first "x" on the line is actually saying: "root" - or is this your username?
Hey, jomen. Here's the output of your code:

x@xx:~$ cd
x@xx:~$ ls -al .gtkrc-2.0
-rw-r--r-- 1 x x 28 1987-12-31 19:34 .gtkrc-2.0
x@xx:~$ cat .gtkrc-2.0
gtk-menu-popup-delay = 6000
x@xx:~$ echo "gtk-menu-popup-delay = 0" >> .gtkrc-2.0
x@xx:~$ cat .gtkrc-2.0
gtk-menu-popup-delay = 6000
gtk-menu-popup-delay = 0
x@xx:~$


"x" happens to be my username, in response to your question. Let me know what are the next steps. Thanks.

.
 
Old 07-29-2008, 05:43 PM   #13
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
ok - what I see here is:

- the file .gtkrc-2.0 already exists
- it already has a one line in it - prior to your input
The line is: gtk-menu-popup-delay = 6000
...it is the "slow menu" variant as I see it
- you can write to the file another line - you did this using the command ... and it worked - after that it has two lines
first the "slow" value - then the one you desired (what we wrote to it: gtk-menu-popup-delay = 0
It seems to be ... that only the first will be taken into accout - which is the "slow" one - the one that you don't want

Now for an attempt to change that:
Code:
cd
echo "gtk-menu-popup-delay = 0" > .gtkrc-2.0
cat .gtkrc-2.0
note that there is now only one ">" sign - the meaning of this is to write the line to the file - replacing whatever was in it,
whereas the command I used before used two ">" signs (">>") - meaning: append the line to whatever is in the file already.
I used that because I did not know what was in that (your) file and did not want to destroy it.

Now - with only one line - with the one you want - it should work as you desired.

Last edited by jomen; 07-29-2008 at 05:45 PM.
 
Old 07-29-2008, 06:41 PM   #14
taurusx5
Member
 
Registered: Jan 2008
Posts: 424

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen View Post
ok - what I see here is:

- the file .gtkrc-2.0 already exists
- it already has a one line in it - prior to your input
The line is: gtk-menu-popup-delay = 6000
...it is the "slow menu" variant as I see it
- you can write to the file another line - you did this using the command ... and it worked - after that it has two lines
first the "slow" value - then the one you desired (what we wrote to it: gtk-menu-popup-delay = 0
It seems to be ... that only the first will be taken into accout - which is the "slow" one - the one that you don't want

Now for an attempt to change that:
Code:
cd
echo "gtk-menu-popup-delay = 0" > .gtkrc-2.0
cat .gtkrc-2.0
note that there is now only one ">" sign - the meaning of this is to write the line to the file - replacing whatever was in it,
whereas the command I used before used two ">" signs (">>") - meaning: append the line to whatever is in the file already.
I used that because I did not know what was in that (your) file and did not want to destroy it.

Now - with only one line - with the one you want - it should work as you desired.
You/re a miracle worker!!! It works!!! Thanks so much for your time and patience with me, jomen. Appreciate it a million times !!!

.
 
Old 07-29-2008, 06:55 PM   #15
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Not a miracle - you only need to know what is actually going on. This took some time...
Glad I could help you

Last edited by jomen; 07-29-2008 at 06:56 PM.
 
  


Reply


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
how to make a particular application run faster? tramni1980 Slackware 5 06-24-2008 02:08 PM
tips to make Le2005 run faster...?? thinhla Mandriva 14 07-23-2005 02:49 PM
Gnome: want to make panels appear faster timswim78 Linux - Software 1 05-31-2005 10:13 PM
is there a way to make vmware run faster? spyghost Linux - General 4 01-16-2004 01:20 PM
Can I make Linux run faster?? justiceisblind Linux - Newbie 3 06-17-2002 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 PM.

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