LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   KDE file association won't stick (https://www.linuxquestions.org/questions/linux-newbie-8/kde-file-association-wont-stick-238642/)

LocoMojo 10-04-2004 12:20 PM

KDE file association won't stick
 
Hello all,

This is my very first post to this forum so please forgive me if I do something wrong.

I'm a total newbie to Linux. Just installed Mandrake 10 last week and totally fell in love with it. Ran into some problems here and there, but I was able to fix most of them with the help of our good friend, Google.

I have this one problem I can't seem to lick. It's a file association issue. Yes, I've searched this forum, but most of what I found had to do with "how to set up a file association". I know how to set up the file association in KDE by going to the control center and all that jazz and I have succeeded in making Firefox my default browser and everything works as it should.

The problem is that the file association for Firefox (text/html) doesn't keep over a logout or a reboot...it reverts back to the defaults on boot or login, i.e., when clicking on a link in an email in Kmail it opens up Konqueror. I imagine there must be some config file somewhere that I need to update and save permanently? When I change the file association it will keep for days and give me no problems whatsoever...it is just after a logout /reboot that I have my problem.

Any help would be very appreciated. Also, any help regarding the use of this forum (if I've done something wrong) would also be appreciated. By the way, if this has already been covered in this forum and I missed it...sorry about that :o If I haven't given enough information, please just ask and I will tell you...I'm just not sure what info would be pertinent here.

LocoMojo

Mandrake 10
KDE 3.2
Firefox 0.10.1
Kmail 1.6.1

pongmaster 10-04-2004 12:25 PM

Go to: startmenu -> system -> configuration -> configure your desktop.
In the new window go to: components -> file associations.
Set up your preferences here. To stop konqueror opening links from emails and such, elevate firefox to the top of the list and put konqueror at the bottom.
You can do this for other stuff too like setting up mplayer for all your video files and such.

LocoMojo 10-04-2004 12:37 PM

Hi pongmaster,

Thanks for your reply.

I have done exactly what you suggested, except I did it via the control center as I didn't see anything about file associations in "configure your desktop".

I elevated Firefox to be first and then when I am done it works flawlessly until I logout or reboot.

The problem for me isn't getting the file association to work, it is getting it to become permanent and sticking over logouts/reboots. I'm getting annoyed with having to re-establish the file association everytime I login.

I'm now wondering if I should maybe do this via root? I didn't try yet as I'm really jittery about becoming root until I know what I'm doing.

Thanks.

LocoMojo

pld 11-04-2004 12:08 PM

just a bump because I am having the same problem...

im using kde occasionally, but its an odd problem because i am also using xfce mostly

if i use konqueror as a filemanager, none of the assocations seem to wanna stick.
i'll go in and setup the file association for mplayer for instance. i'll set all my video preferences to use gmplayer to open it, make it up to the top of the list, update it. but it NEVER sticks for me. if i go back in immediately to check, the association is gone, as well as the gmplayer option? anyone find a solution to this?

vanilla fc2 install at the moment.

scuzzman 11-04-2004 02:41 PM

Maybe try logging into KDE and going into Session Manger
Select "Start with saved session"
Set up file associations
Go to KDE Button, select "Save Session"
logout/login

pld 11-04-2004 11:54 PM

following someone elses suggestion I figured out that using the full path to the program that you want to associate will do the trick. So for adding mplayer, you would use /usr/local/bin/gmplayer

then the association stuck :.

LocoMojo 11-05-2004 02:57 AM

Hello all,

Sorry I forgot to get back with you all. I found the answer that worked for me.

I Googled around and found out that file association changes are kept in RAM (don't ask me why)
which means that the change is flushed out during a logout and the file
associations revert to defaults.

I discovered a command called kbuildsycoca which makes changes permanent by
writing them to configs or something like that.

I used kbuildsycoca --noincremental

The noincremental option = "Disable incremental update, re-read everything."

From kbuildsycoca --help-all

Worked like a charm for me, hope this works for you all too :)

LocoMojo

P.S. - this worked for me in both Mandrake 10 and Slackware 10.

Good luck!

P.P.S. - After posting I realized that I had forgotten to mention that you needed to make the file association change first then issue the command 'kbuildsycoca --noincremental' in CLI. That's probably a given, but I wanted to be sure I was clear.

cbonar 12-28-2004 10:32 AM

Thank you very much (afterwards), LocoMojo, I would never have found this myself. Here follows what it solved for me.

I used to have almost the same problem : I was successfull once in adding firefox as my default program for text/html (don't have a clue how I did it), but the command was "/.../firefox/firefox", and not "/.../firefox/firefox %u" (which is needed to open 'live' URL, not a cached file).
Of course, every time the machine was restarted, the setting was lost, and the old command without %u was used.

With "kbuildsycoca --noincremental", the settings were kept after I reboot.

As a clue, I'm using ReiserFS and Ext3FS, maybe there's a problem with journalized FS ?


All times are GMT -5. The time now is 12:17 PM.