FedoraForum.org - Fedora Support Forums and Community
Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2004
    Location
    Laurel, MD USA
    Posts
    7,174

    want to force KDE to refresh shell environment

    I've noticed that if I log into KDE4 and then change my .tcshrc file, that new shells don't reflect the new change. KDE is acting like it reads the .tcshrc file once at user login, then caches that somewhere and uses that environment for all future shell launches (I usually launch by right clicking the desktop and picking "konsole") even if the .tcshrc is edited later. I have to totally log out of KDE and then only then do new shells instances show the change. A manually workaround is to just type "source ~/.tcshrc" in the window but even that doesn't work if the change is to remove an environment var (the source command is only overwriting vars that match, orphan vars persist until you usually remove them with unsetenv), in that case I have to do "unsetenv FOO" if the var was "FOO". I'd prefer to just flush this KDE cache and make it reload.

    Is there a way to stop this (make KDE always read the env file) or at least make KDE reload the user's shell environment manually somehow (ie in my case my default shell is tcsh so I want KDE to reread ~/.tcshrc )
    Last edited by marko; 15th April 2012 at 07:38 PM. Reason: -e $home/.tcshrc didn't work after further tests

Similar Threads

  1. Force Nautilus Refresh
    By EntityReborn in forum Using Fedora
    Replies: 0
    Last Post: 26th May 2008, 08:22 PM
  2. Shell: How to know all the environment variables
    By guarriman in forum Using Fedora
    Replies: 5
    Last Post: 18th February 2008, 07:56 PM
  3. Force a refresh rate/res with nvidia X Server? (1st post!)
    By Caracal in forum Hardware & Laptops
    Replies: 0
    Last Post: 22nd December 2006, 02:33 PM
  4. How do I use gcc in shell environment?
    By TheProgrammer in forum Using Fedora
    Replies: 7
    Last Post: 5th November 2004, 04:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •