WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Poll

ondemand should download the extension from the net?

yes
3 (50%)
no
3 (50%)

Total Members Voted: 6

Author Topic: ondemand behaviour in case the extension in not in the optional dir  (Read 2558 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
should the scripts generated by ondemand download from the net the extension if missing locally?
« Last Edit: January 06, 2011, 05:56:45 PM by jls_legalize »
dCore user

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #1 on: January 06, 2011, 11:51:03 AM »
How does it get in ondemand if it is not in optional?

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #2 on: January 06, 2011, 11:52:40 AM »
u ondemanded the extension in the past but then u deleted the tcz
dCore user

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #3 on: January 06, 2011, 05:40:44 PM »
No

You should not delete the tcz if you want to use it.

You can't expect tiny core to do things you don't ask it to do. Other people may not want it to do that.
« Last Edit: January 07, 2011, 01:13:17 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #4 on: January 06, 2011, 05:51:20 PM »
It is very easy to put a script in ~/.local/bin that checks to see if the binary exists, and tce-load -iw the extension if it does not.
I do this for dropbear and midnight-commander, as they have no icon for ondemand.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #5 on: January 06, 2011, 06:14:05 PM »
I could imagine that this idea could be implemented as "ondemand from cloud".

If it could be implemented in a way to rely only on files in backup so an existing PPR would not be a requisite, then it could possibly enhance the (already impressive) nomadic capacities of TC even further.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #6 on: January 06, 2011, 07:36:03 PM »
Ahh, if there is no ppr, where are you going to store this ondemand-from-cloud?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #7 on: January 06, 2011, 09:11:45 PM »
What I had in mind would be a persistent personal ondemand configuration, which might allow to use ondemand in a similar way as using extensions when in cloud mode with backup.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #8 on: January 06, 2011, 10:17:23 PM »
What I had in mind would be a persistent personal ondemand configuration, which might allow to use ondemand in a similar way as using extensions when in cloud mode with backup.
I have my setup like this. I can delete everything in tce/optional (except onboot stuff), and recover fully.

Now if tce-load also fetched stuff from the repo if missing locally, it would be a fully recoverable system. Has my vote.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #9 on: January 07, 2011, 02:37:18 AM »
The user needs to be given a choice.

The minimum requirement would be to notify the user that the extension is missing, and ask if the user wants to download it.

But then, why not just suggest the user download it using the app browser?
Many people see what is. Some people see what can be, and make a difference.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #10 on: January 07, 2011, 02:50:42 AM »
Choice is good - could be a radio button in appbrowser, to select an option to automatically download missing extensions.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ondemand behaviour in case the extension in not in the optional dir
« Reply #11 on: January 07, 2011, 10:49:08 AM »
Automatically "attempting" to download missing dependencies during application load will
result in confusion to many users when applications fail to load.
Forcing the download of dependencies when downloading an application with AppBrowser
gives the user feedback on the success or failure of the installation.

Just how do you decide what commands need to be downloaded on-demand, and how do you know the extension names?