Bug 184716 - file associations cannot be changed
Summary: file associations cannot be changed
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_filetypes (show other bugs)
Version: 4.2.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 22:15 UTC by andreaswuest
Modified: 2009-02-18 21:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
"