Bug 287541 - krita cannot tag presets not owned by the user
Summary: krita cannot tag presets not owned by the user
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: srikanth Tiyyagura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-25 13:57 UTC by Tom Hall
Modified: 2011-11-25 14:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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

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

http://commits.kde.org/calligra/f2cd675800078b57e9e3f55af610c4c1bed093bd