Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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)
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 "/".
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
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?
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.
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:~$
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?
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.
- 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.
- 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 !!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.