Subject: pkg/14428: KDE2 "Create New" background menu items fail with "insufficient permissions"
To: None <>
From: Mark Davies <>
List: netbsd-bugs
Date: 11/02/2001 13:14:58
>Number:         14428
>Category:       pkg
>Synopsis:       KDE2 "Create New" background menu items fail with "insufficient permissions"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 16:16:00 PST 2001
>Originator:     Mark Davies
>Release:        NetBSD 1.5Y 29/10/2001
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
System: NetBSD 1.5Y NetBSD 1.5Y (MCS_WORKSTATION) #1: Tue Oct 30 22:54:21 NZDT 2001 i386
Architecture: i386
Machine: i386
	The "Create New" links on the background menu (in KDE2) fail to work
	properly complaining about insufficient permissions to write files.
	This is because they copy a template file to the local Desktop then
	try to modify it and this fails because the copy preserves the 444
	permissions of the templates.

	Try to create a new floppy device on the kde desktop.
	My fix is to modify the permissions of the template files to be
	user writeable.  Below is the patch for kdebase2/Makefile

--- Makefile~	Tue Oct 23 13:14:22 2001
+++ Makefile	Thu Oct 25 16:37:29 2001
@@ -63,6 +63,7 @@
 	@${CHMOD} u+s ${PREFIX}/bin/konsole_grantpty
 	@${CHMOD} u+s ${PREFIX}/bin/kcheckpass
 	@${CHMOD} u+s ${PREFIX}/bin/ksysguardd
+	@${CHMOD} u+w ${PREFIX}/share/kde/templates/.source/*.desktop
 	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} \! -type d | sort >>${PLIST_SRC})
 	@(cd ${PREFIX}; ${FIND} ${PLIST_DIRS} -type d | sort -r | \
 		${SED} "s/^/\@dirrm /" >>${PLIST_SRC})