Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: uggla on September 06, 2010, 04:40:03 AM

Title: ondemand directory in path suggestion
Post by: uggla on September 06, 2010, 04:40:03 AM
Excellent!  :)

A suggestion:
Why not put the ondemand directory in the path? Wouldn't it be great to be able to use the same command to launch the app no matter if it has been loaded or not. Would make the wbar code less complicated too!

regards
/Uggla
Title: ondemand directory in path
Post by: curaga on September 06, 2010, 08:07:47 AM
A suggestion:
Why not put the ondemand directory in the path? Wouldn't it be great to be able to use the same command to launch the app no matter if it has been loaded or not. Would make the wbar code less complicated too!

Since it's under tce/, and we support tce dir on fat, it wouldn't be a good idea by default.
Maybe a conditional, add if it's on a linux fs.
Title: Re: ondemand directory in path suggestion
Post by: uggla on September 16, 2010, 06:33:05 AM
What about creating a link for every ondemand item in /usr/local/bin?

/Uggla
Title: Re: ondemand directory in path suggestion
Post by: curaga on September 16, 2010, 06:55:25 AM
A symlink wouldn't get around the fat issue, the permissions of the file would still matter.
Title: Re: ondemand directory in path suggestion
Post by: roberts on October 02, 2010, 02:14:42 PM
I don't want fat to limit us as making a native supported file system is easy and well supported.
If you want to use OnDemand then use a native file system.
Title: Re: ondemand directory in path suggestion
Post by: combo3 on February 16, 2011, 12:15:14 PM
Python fails to execute when the extension is loaded from the "On Demand" menu.

The problem appears to be in the path order:

tc@box:~$ which python
/home/tc/.wmx/OnDemand/python
tc@box:~$ echo $PATH
/home/tc/.local/bin:/home/tc/.wmx/OnDemand:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin


Any possibility of changing the default path order for the next release?
Title: Re: ondemand directory in path suggestion
Post by: gerald_clark on February 16, 2011, 01:00:28 PM
cd
cp /etc/skel/.profile .
Title: Re: ondemand directory in path suggestion
Post by: Jason W on February 16, 2011, 08:00:23 PM
I think python is not an app that will execute and open a terminal when the ondemand menu item is pressed.

It would need a menu entry that opens a terminal and then executes python.  I think that anyone versed in python will just open a terminal and then enter the python command, whether the extension is onboot or ondemand.  And usually python is run from a script anyway.

I don't really see a need for a menu item or icon for python, but if there are a few python users that would like to see it I will put it in.

Title: Re: ondemand directory in path suggestion
Post by: combo3 on February 16, 2011, 08:58:32 PM
cd
cp /etc/skel/.profile .

Yep, that did it. Thanks.

And belatedly, I note that Robert mentioned it in release updates 3.2 and 3.4

Unfortunately my upgrade path was 3.1 > 3.3 > 3.5, so I missed that completely.

That'll teach me for skipping the even numbered releases.  :D