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
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.
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