bbenn Posted November 7, 2005 Report Share Posted November 7, 2005 Hi, In my MDK+Icewm I have 2 users. Root User1 I'd like to get the Apps idesk & ivman avaialble only i f I log on as user1. I don't want these two apps available in system wide. Anybody knows how to do this please? Ben Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted November 7, 2005 Report Share Posted November 7, 2005 Sure. Place the executable in in User1's /home/User1/bin directory. (If it is not there, you can create the directory with this command: mkdir /home/User1/bin Then in that user's /home/User1/.bash_profile add that directory to the PATH variable or if the 'export PATH' line is not there, add it like this: export PATH=$PATH:/home/User1/bin I am not at my Linux box right now, but I think .bash_profile is where you add it. Quote Link to comment Share on other sites More sharing options...
Aomighty Posted November 7, 2005 Report Share Posted November 7, 2005 If not, it'll be .bashrc, but it should be pretty easy. This kind of thing is where Linux shines. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted November 8, 2005 Report Share Posted November 8, 2005 I am now at my Linux box and here is my ~/.bash_profile: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs JAVA_HOME=/usr/java/jre1.5.0_04 PATH=$PATH:$HOME/bin PATH=$JAVA_HOME/bin:$PATH export PATH export JAVA_HOME unset USERNAME Quote Link to comment Share on other sites More sharing options...
bbenn Posted November 8, 2005 Author Report Share Posted November 8, 2005 Thanks guys, it did worked. If I can ask another Q How do I get idesk to start after xwindows started (startx) ? I put "idesk " in xinitrc but it made the system went crazy i added "idesk" to the end od local.rc and it didn't do anything where is the best palce for this? Thanks Ben Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted November 8, 2005 Report Share Posted November 8, 2005 For fluxbox, I put it in ~/.fluxbox/startup. Make sure you put it above: exec /usr/X11R6/bin/fluxbox and put it in there as idesk & or the system will hang. What window manager/desktop environment are you using? Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted November 8, 2005 Report Share Posted November 8, 2005 There's several ways to do it but I would try editing /usr/X11R6/bin/starticewm first to something like this: #!/bin/bash # JMD: add icewm-desktop so that icewm can be integrated with rox, dfm, # or another program that adds icons to the desktop <insert path to idesk> & if [ -e /usr/X11R6/bin/icewm-desktop ];then /usr/X11R6/bin/icewm-desktop else /usr/X11R6/bin/icewm-session fi Make sure to put the "&" after the path to idesk in the above. This is a direct edit of the starticewm script on LE2005. As noted in the comments above, you can also create your own icewm startup script and call it icewm-desktop and place it in /usr/X11R6/bin/. That would probably look something like this: #!/bin/bash <path to idesk> & <path to any other program you want to autostart> & /usr/X11R6/bin/icewm I'm not sure of the distinction between "icewm" and "icewm-session". You might want to try both in your icewm-desktop script. Quote Link to comment Share on other sites More sharing options...
bbenn Posted November 9, 2005 Author Report Share Posted November 9, 2005 Thank you very much. I'll try this soon as I get home. Ben Quote Link to comment Share on other sites More sharing options...
bbenn Posted November 10, 2005 Author Report Share Posted November 10, 2005 Thanks guys below bit worked. Most of my problems sloved. #!/bin/bash # JMD: add icewm-desktop so that icewm can be integrated with rox, dfm, # or another program that adds icons to the desktop idesk & if [ -e /usr/X11R6/bin/icewm-desktop ];then /usr/X11R6/bin/icewm-desktop else /usr/X11R6/bin/icewm-session fi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.