Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 240157

Summary: kde-base/kdebase-startkde-4.1.2 skips startup/shutdown scripts
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Matt Whitlock 2008-10-05 21:38:08 UTC
The startkde script only sources the scripts in /etc/kde/{startup,shutdown} if "${KDEDIR}" == "/usr", but KDEDIR is set empty, so the scripts are never sourced.

Relevant lines:

 10  export KDEDIR=

239  # Gentoo part for FHS installs
240  if [ "${KDEDIR}" == "/usr" ]; then
241    for file in "/etc/kde/startup/"*.sh; do
242      test -r "${file}" && . "${file}"
243    done
244  fi

457  # Gentoo part for FHS installs
458  if [ "${KDEDIR}" == "/usr" ]; then
459    for file in "/etc/kde/shutdown/"*.sh; do
460      test -r "${file}" && . "${file}"
461    done
462  fi
Comment 1 Marcus D. Hanwell (RETIRED) gentoo-dev 2008-10-06 18:33:12 UTC
I will take a look at this and fix it later. The startkde scripts have been changing quite a bit recently. It is just a small change but I can't get to it right now. Thanks for pointing this out.
Comment 2 Marcus D. Hanwell (RETIRED) gentoo-dev 2008-10-06 18:39:44 UTC
I think I read this wrong. What kdebase-startkde version do you have installed. I already fixed this in kdebase-startkde-4.1.2-r1. Please emerge --sync and update. If this persists then please reopen this bug report.
Comment 3 Matt Whitlock 2008-10-07 02:54:02 UTC
It does indeed appear fixed in 4.1.2-r1.  Sorry to bother you, and thanks!
Comment 4 Marcus D. Hanwell (RETIRED) gentoo-dev 2008-10-07 03:05:35 UTC
It is totally OK. Glad the bumped version works well for you. It is always good to get feedback on problems in new ebuilds before we unmask them for the masses ;-)