Bug 184716

Summary: file associations cannot be changed
Product: [Applications] systemsettings Reporter: andreaswuest
Component: kcm_filetypesAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: andresbajotierra
Priority: NOR    
Version: 4.2.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description andreaswuest 2009-02-17 22:15:07 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

hello,

it is not possible to change the file association in the kde system settings. how to reproduce:
1. start the kde systemsettings with "sudo systemsettings"
2. select file associations on the second tab (Extended?)
3. select the pdf file association:
   per default i have the following associations:
   1: Gimp Image Editor (which starts with gimp-2.6 %U)
   2. Okular (which starts with okular %U %i -caption "%c")

4. i tried to change the command for okular to "okular %U" but it does not work.
   a dialog is shown that the system settings will be updated, but that does not work.

for some reason i can see the okular entry twice after i tried to change the command !!
both entries still have the command (okular %U %i -caption "%c").
Comment 1 Dario Andres 2009-02-17 23:56:30 UTC
Can you modify them running it as your normal user (instead of using "sudo" ) ??
Comment 2 andreaswuest 2009-02-18 19:45:41 UTC
no i cannot change it as a normal user, the behavious is the same. on the console
i can see the following messages. maybe they help you:

andy@laptop2:~/Desktop/kraft$ systemsettings(8970) MainWindow::selectionChanged: Selected item:  "Dateizuordnungen"
systemsettings(8970) MainWindow::selectionChanged: Comment:        "Dateizuordnungen vornehmen"
systemsettings(8970) MainWindow::selectionChanged: Needs root privs: false
systemsettings(8970) KFileMetaPropsPlugin::supports:
systemsettings(8970) KDEPrivate::KDesktopPropsPlugin::applyChanges: ("application/vnd.kde.okular-archive")
Comment 3 David Faure 2009-02-18 21:52:57 UTC
Right. I fixed this for 4.2.1 in r921138.

"  Fix duplicated applications in the K menu and in keditfiletype, because kded was
  creating kservices with absolute paths and not letting local ones override global ones.
  Fixes bug 179946, bug 179462, bug 182060
"