WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ondemand directory in path suggestion  (Read 3459 times)

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
ondemand directory in path suggestion
« 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
ondemand directory in path
« Reply #1 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.
The only barriers that can stop you are the ones you create yourself.

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: ondemand directory in path suggestion
« Reply #2 on: September 16, 2010, 06:33:05 AM »
What about creating a link for every ondemand item in /usr/local/bin?

/Uggla

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: ondemand directory in path suggestion
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: ondemand directory in path suggestion
« Reply #4 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.
10+ Years Contributing to Linux Open Source Projects.

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: ondemand directory in path suggestion
« Reply #5 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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ondemand directory in path suggestion
« Reply #6 on: February 16, 2011, 01:00:28 PM »
cd
cp /etc/skel/.profile .

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: ondemand directory in path suggestion
« Reply #7 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.


Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: ondemand directory in path suggestion
« Reply #8 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