Bug 178323 - kdelibs: /etc/profile.d/kde.(csh|sh) additions
Summary: kdelibs: /etc/profile.d/kde.(csh|sh) additions
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact:
URL:
Whiteboard:
: 178616 (view as bug list)
Depends On:
Blocks: 196013
TreeView+ depends on / blocked
 
Reported: 2006-01-19 14:23 UTC by Rex Dieter
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-06-24 06:50:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
sample kde.sh (1.18 KB, text/plain)
2006-01-19 14:23 UTC, Rex Dieter
no flags Details
sample kde.csh (1.06 KB, text/plain)
2006-01-19 14:24 UTC, Rex Dieter
no flags Details

Description Rex Dieter 2006-01-19 14:23:23 UTC
Per http://kde.ground.cz/tiki-index.php?page=Environment+Variables, items to 
consider adding: 
KDE_IS_PRELINKED  (for sure!) 
 
optional, but disabled by default items: 
KDE_FORK_SLAVES 
KDE_NO_IPV6 
GLIBCXX_FORCE_NEW

Comment 1 Rex Dieter 2006-01-19 14:23:23 UTC
Created attachment 123438 [details]
sample kde.sh

Comment 2 Rex Dieter 2006-01-19 14:24:25 UTC
Created attachment 123439 [details]
sample kde.csh

Comment 3 Than Ngo 2006-05-16 12:38:21 UTC
i have already added some usefull KDE envoremnts for FC in /etc/kde/env/env.sh
(kdebase). Thanks for your report.

Comment 4 Than Ngo 2006-05-16 12:42:08 UTC
*** Bug 178616 has been marked as a duplicate of this bug. ***

Comment 5 Rex Dieter 2006-05-16 12:45:12 UTC
IMO, it would be better to put this in /etc/profile.d, else KDE apps launched
from outside of KDE environment (from Gnome, for example) won't benefit.

Comment 6 Than Ngo 2006-05-16 13:00:43 UTC
i forgot the user trying to start outside of KDE environment ;-)
sure, it should go into kdelibs. Thanks

Comment 7 Laurent Rineau 2006-06-20 09:51:22 UTC
The resolution of this bug, in kdelibs-3.5.3-0.2 (on FC-5 at least), has 
broken /etc/zprofile (for zsh users).

It seems that the syntax used in /etc/profile.d/kde.sh is not understandable 
by the Z shell. My login shell is /bin/zsh, and each launched login shell 
complains with:
 /etc/profile.d/kde.sh:4: = not found

Here is the patch:
--- /tmp/kde.sh	2006-06-20 11:57:00.000000000 +0200
+++ /tmp/kde.sh4454S5r	2006-06-20 11:57:00.000000000 +0200
@@ -1,7 +1,7 @@
 # When/if using prelinking, avoids (some) use of kdeinit
 if [ -f /etc/sysconfig/prelink ] ; then
    source /etc/sysconfig/prelink
-   if [ "$PRELINKING" == yes ] ; then
+   if [ "$PRELINKING" = yes ] ; then
       [ -z "$KDE_IS_PRELINKED" ] && KDE_IS_PRELINKED=1 && export 
KDE_IS_PRELINKED
    fi
 fi

Somebody suffers from an overdose of C++. ;-)

What is more, /etc/profile.d/kde.sh is not a config file. rpm --verify 
complains if I modify it. I think this should be fixed (but it should be 
another bug report).


Comment 8 Rex Dieter 2006-06-20 11:27:41 UTC
> What is more, /etc/profile.d/kde.sh is not a config file. rpm --verify 
> complains if I modify it. I think this should be fixed (but it should be 
> another bug report).

IMO, it *should* be marked %config, else local modifications will get lost
when/if kdelibs gets upgraded.  You wouldn't want that, would you?

Comment 9 Rex Dieter 2006-06-20 11:30:56 UTC
Personally, I also think the the source'ing of /etc/sysconfig/prelink is
dubious, because it polutes the users' environment space.

Comment 10 Laurent Rineau 2006-06-20 12:06:53 UTC
(In reply to comment #8)
> > What is more, /etc/profile.d/kde.sh is not a config file. rpm --verify 
> > complains if I modify it. I think this should be fixed (but it should be 
> > another bug report).
> 
> IMO, it *should* be marked %config, else local modifications will get lost
> when/if kdelibs gets upgraded.  You wouldn't want that, would you?

I fully agree. I eventually have filled bug #196013, to address this issue. It 
will avoid the polution of the current bug.


Comment 11 Than Ngo 2006-06-24 06:50:28 UTC
it's now fixed in kdelibs-3.5.3-5. Thanks for your 
report.

Comment 12 Laurent Rineau 2006-06-29 14:09:02 UTC
Will kdelibs-3.5.3-5 be pushed in FC-4 and FC-5?
I have checked in CVS repository, and it seems that the bug is not corrected 
in FC-4 and FC-5 branches.



Note You need to log in before you can comment on or make changes to this bug.