Bug 205126 - Build search index gives permission error
Summary: Build search index gives permission error
Status: RESOLVED FIXED
Alias: None
Product: khelpcenter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 21:24 UTC by Kim Woodle
Modified: 2016-03-12 23:26 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 Kim Woodle 2009-08-25 21:24:50 UTC
Version:           4.3.00 (KDE 4.3.0) "release 152" (using 4.3.00 (KDE 4.3.0) "release 152", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.29-0.1-pae

Under Search Options, Scope includes UNIX man pages only. Click on Build Search Index gives check box for applications. Root password is requested and given. Check the box and it is reported that the index is built. Details shows message

(12165) main: cmdFile: "/tmp/kde-kim/khelpcenterL12119.tmp" (12165) main: indexDir: "file:///usr/share/doc/kde/HTML/en" (12165) main: access denied 

The index is not built, the next time you go to build index the applications check-box is still blank.

getfacl: Removing leading '/' from absolute path names
# file: usr/share/doc/kde/HTML/en
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
Comment 1 Pino Toscano 2016-03-12 23:26:09 UTC
Git commit 02c218083bebd581e8a33741cd101fcc0ac2cfef by Pino Toscano.
Committed on 12/03/2016 at 23:01.
Pushed by pino into branch 'master'.

Automatically update indexes at startup

Currently the user is asked to manually update the search index, which
is not a friendly solution. Instead, start the indexing update right
after the startup, with a indefinite progress bar showing the on-going
process. Considering the Xapian indexing is generally fast, this won't
cause a big delay between the startup and when the user can start
searching.

Move the queue-based index logic from IndexBuilder to Navigator
directly, getting rid of the separate khc_indexbuilder tool (no need to
have an helper tool to spawn the actual indexing/searcing tools) and
the D-Bus interface to support it, and removing the indexing dialog
(now everything that can be indexed is updated).

This also removes the need for indexers to create <identifier>.exists
files in the index directories.
Related: bug 101876, bug 164308, bug 222494, bug 269260

M  +0    -16   CMakeLists.txt
D  +0    -1    config-khelpcenter.h.cmake
M  +1    -16   docentry.cpp
M  +0    -2    docentry.h
D  +0    -691  kcmhelpcenter.cpp
D  +0    -251  kcmhelpcenter.desktop
D  +0    -166  kcmhelpcenter.h
D  +0    -204  khc_indexbuilder.cpp
D  +0    -58   khc_indexbuilder.h
M  +2    -0    mainwindow.cpp
M  +121  -44   navigator.cpp
M  +15   -6    navigator.h
D  +0    -14   org.kde.khelpcenter.kcmhelpcenter.xml
M  +1    -4    searchhandlers/README.searchhandlers
M  +0    -9    searchhandlers/xapianindexer.cpp
M  +1    -10   searchwidget.cpp
M  +2    -6    searchwidget.h

http://commits.kde.org/khelpcenter/02c218083bebd581e8a33741cd101fcc0ac2cfef