Bug 287541

Summary: krita cannot tag presets not owned by the user
Product: [Applications] krita Reporter: Tom Hall <tahall256>
Component: GeneralAssignee: srikanth Tiyyagura <srikanth.tulasiram>
Severity: normal CC: halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Archlinux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tom Hall 2011-11-25 13:57:48 UTC
Version:           svn trunk (using KDE 4.7.3) 
OS:                Linux

Presets installed in system directories (/usr/share/apps/krita/paintoppresets/, owned by root:root) cannot be tagged using the "Add / Remove Tag" field in the preset docker. The field is greyed out when such a preset is selected.

Tagging is possible if the presets are installed in a user directory (~/.kde4/share/apps/krita/paintoppresets/ , owned by the user)

It appears to be an ownership/permissions issue. Presets owned by root (as system-wide installed presets are) cannot be tagged. User owned presets can be tagged. (Tried chown-ing a few presets to check).

Reproducible: Always

Steps to Reproduce:
Open presets docker. Select a preset that is installed system-wide. Try to enter a tag in the "Add / Remove Tag" field.

Actual Results:  
"Add / Remove Tag" field is greyed out/inactive.

Expected Results:  
"Add / Remove Tag" field should be active, allowing tag to be typed in.

Bug seems to be present with both XML and Nepomuk as the resource tagging backend.
Comment 1 Halla Rempt 2011-11-25 13:59:05 UTC
Yes, I can confirm (by simply chmod a-w inst/kde/share/apps/krita/paintoppresets/*. Srikanth, can you take a look?
Comment 2 Sven Langkamp 2011-11-25 14:46:23 UTC
Git commit f2cd675800078b57e9e3f55af610c4c1bed093bd by Sven Langkamp.
Committed on 25/11/2011 at 15:43.
Pushed by langkamp into branch 'master'.

allow adding the tags for read only files

M  +1    -1    libs/widgets/KoResourceItemChooser.cpp