| Summary: | KDE4 session launched from TDM has incorrect environment | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Francois Andriot <albator78> |
| Component: | tdelibs | Assignee: | Francois Andriot <albator78> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | albator78, bugwatch, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Attachments: | tdebase : fix TDM variable USER_PATH | ||
|
Description
Francois Andriot
2013-09-07 07:25:45 CDT
Looks like it's because of variables defined in "tdmrc". # The PATH for the Session program. # Default is "/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/opt/trinity/games:/usr/games" #UserPath= # The PATH for Setup, Startup and Reset, etc. # Default is "/usr/local/sbin:/usr/local/bin:/opt/trinity/sbin:/usr/sbin:/opt/trinity/bin:/usr/bin:/sbin:/bin" #SystemPath= In source code we find it in "tdebase/tdm/config.def" I think we should NOT put trinity's specific path in the USER_PATH and SYSTEM_PATH, because these variables are used in ALL desktop environment, not only TDE. ... but removing the "/opt/trinity" references causes TDM to NOT find the other command it needs (dcopserver, tdmgreeter, etc ...) We must find a solution so that TDM still works with binaries under /opt/trinity/bin , but that PATH does not contain trinity when starting the user session. It looks like keeping the SYSTEM_PATH as is, but just removing the "/opt/trinity" references in USER_PATH, does the trick. Please, try it. Created attachment 1516 [details]
tdebase : fix TDM variable USER_PATH
The attached patch allows starting functional KDE4 session from TDM.
On my test machine I have next to TDE also LXDE. With your patch is in LXDE session PATH without paths to TDE. Good work! Pushed to GIT in hash b0d67615. |