LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2006, 05:38 PM   #1
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
How to specify environment variables in KDE


Hi all!

I want to setup an environment variable when I am working in Linux. I have added this to my .bashrc and thus it works in Konsole. But I want to set this environment variable globally. Is there a way to do so?
 
Old 11-02-2006, 05:54 PM   #2
bhert
Member
 
Registered: May 2006
Distribution: OpenSUSE 10.3 Kubuntu Hardy Heron
Posts: 268

Rep: Reputation: 30
export makes it global ,at least that is what I think it is , if that is what you mean

export PATH=$PATH:/path/to/file


-bhert
 
Old 11-02-2006, 08:55 PM   #3
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by bhert
export makes it global ,at least that is what I think it is , if that is what you mean

export PATH=$PATH:/path/to/file


-bhert
No! No! I am asking where to specify this so that it is available to even those applications which are launched by K Menu.
 
Old 11-02-2006, 09:29 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by anupamsr
No! No! I am asking where to specify this so that it is available to even those applications which are launched by K Menu.
I believe you can put a script in the ~/.kde/share/env/ directory to have it executed on kde startup.
 
Old 11-02-2006, 09:29 PM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
well the common way is to put junk like that in ~/.bash_profile
it should work also in ~/.bashrc because often .bashrc is sourced from .bash_profile

if you mean global like for all users then /etc/profile

the point you are missing is that all applications lauched as a particular user
no matter how from a menu or whatever
are launched as children to the original user login shell and inherit (get a copy of) all environmental variables.
 
  


Reply

Tags
bashrc, environment variable, kde



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting KDE environment variables correctly lykwydchykyn Debian 1 03-27-2006 04:31 PM
environment variables user_linux Linux - Newbie 3 06-15-2005 08:46 AM
Setting Environment Variables for KDE launchers giosue_c Linux - Software 4 02-25-2005 02:48 PM
KDE set environment variables TroelsSmit Linux - Newbie 3 09-06-2004 02:14 PM
KDE environment variables quantum10 Mandriva 1 05-15-2004 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration