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

Bug 255278

Summary: wish: needed a way to switch kdepaths in $PATH user variable
Product: Gentoo Linux Reporter: Marco Clocchiatti <ziapannocchia>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marco Clocchiatti 2009-01-17 16:07:11 UTC
In my Gentoo desktop, I'm using both kde-3.* and kde-4.*.

But, if I login with kde3.* and launch a kde with a command line teminal, I'm forced to launch the 4.* version of the program.

This happen because the $PATH variable is defined using /etc/env.d defaults, where portage put a 43kdepaths-4.1 for kde-4.* and a 45kdepaths-3.*



Reproducible: Always

Steps to Reproduce:
1. login with kde-3.5
2. launch a kde application from a terminal.
Actual Results:  
I wish one of these solution:

1. some instrument, such as eselect to change this order 2. some control in startkde script to automatic exchange the order in $PATH variable when I login with kde-3.5 instead of kde-4.*
3. any other idea you prefear
Comment 1 djinnZ 2009-01-17 19:15:39 UTC
There are some possible solutions, by example one is manage a symlink (/etc/env.d/43kdepaths by example) via eselect to set the default.

A more dynamical way can be adding to the /etc/session/kde-* scripts the ability to edit the env variables and set the 3.x or the 4.x path as first.

Another solution can be patching the startkde script for every version and adding the istructions to set the proper order for paths.
Comment 2 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-05-27 00:40:05 UTC
kde3 and kde4 mixed sessions are handled well with new kde3 eclasses, only thing to fix is to make kde3 applications shown in kde4 kmenu