LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How Can I Make Gnome Menu Run Faster ?? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-make-gnome-menu-run-faster-658823/)

taurusx5 07-28-2008 01:27 PM

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?

.

jomen 07-28-2008 05:23 PM

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.

gullit 07-28-2008 05:39 PM

Hey, you're not running Ubuntu from a LiveCD, are you ?
LiveCD doesn't save the changes that you do.

taurusx5 07-28-2008 06:51 PM

Quote:

Originally Posted by jomen (Post 3229114)
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?

jomen 07-28-2008 06:58 PM

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)

taurusx5 07-28-2008 07:33 PM

Quote:

Originally Posted by jomen (Post 3229175)
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?

jomen 07-28-2008 07:47 PM

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

taurusx5 07-29-2008 11:03 AM

Quote:

Originally Posted by jomen (Post 3229212)
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?

.

jomen 07-29-2008 12:35 PM

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.

taurusx5 07-29-2008 01:54 PM

Quote:

Originally Posted by jomen (Post 3230029)
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:~$

jomen 07-29-2008 04:31 PM

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?

taurusx5 07-29-2008 05:25 PM

Quote:

Originally Posted by jomen (Post 3230261)
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.

.

jomen 07-29-2008 05:43 PM

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.

taurusx5 07-29-2008 06:41 PM

Quote:

Originally Posted by jomen (Post 3230311)
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 !!!

.

jomen 07-29-2008 06:55 PM

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


All times are GMT -5. The time now is 01:13 PM.