LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-16-2006, 07:54 PM   #1
rje_NC
Member
 
Registered: Nov 2002
Location: Greensboro, NC
Posts: 182

Rep: Reputation: 30
how to add kde/bin to path when I "su"?


I just installed Slackware 11 on a test system and I want to learn more about KDE (have been a long time Dropline user). One thing I find different under KDE is the path to KDE programs such as kedit is not defined when I use the "su" command from the3 command line.

I want to use kedit without having to type the entire command line each time when I switch to the root user to edit a config file. Where can I add /opt/kde/bin to the PATH so this works when I have su'ed to the root account?

I have looked in my home folder but I don't see any files that have the Path defined. Any guidance would be appreciated.

Bob
 
Old 10-16-2006, 07:59 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
you have a look at your root's .bash_profile or if you want to have a global path for every users, you may edit /etc/profile
 
Old 10-16-2006, 10:54 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
They're defined in /etc/profile and some scripts in /etc/profile.d. Use su - instead of just su, that will load the init scripts.
 
Old 10-16-2006, 11:24 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Look at /etc/profile.d/kde.sh. The path to $KDE/bin should already be in that script. Ensure the script is tagged executable. The script is installed through the kdebase package.
 
  


Reply



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
How to add Gnome style "drawer" (ie sub-menu) to KDE 3.1 kicker (aka KDE Panel) quaestor Linux - Software 7 10-17-2006 09:55 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Cedega from Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Software 0 03-30-2005 11:24 AM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 02:48 AM
Add items in "start menu" using KDE bottled leaf Linux - Newbie 3 02-21-2004 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:21 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