helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
807 stars 58 forks source link

Make the pkg file executable #247

Open louies0623 opened 3 years ago

louies0623 commented 3 years ago

Allow users to install software using pkg files, and no complicated terminal is required, just a few clicks with the mouse can be installed.

kettle-7 commented 3 years ago

The idea is that you don't need packages, or installation, you just download the app and there it goes.

probonopd commented 3 years ago

True. On helloSystem, we prefer Application Bundles.

Nevertheless, we could do something similar to

image

when one double-clicks a txz file.

We could probably implement it in https://github.com/helloSystem/ISO/blob/experimental/overlays/uzip/hello/files/usr/local/libexec/app-placeholder.

When a txz file is the first argument, then we could show

[Package icon] The software inside this package needs to be installed before it can be used.

Do you want to install it now?

It's just Python, any volunteers? ;-)

louies0623 commented 3 years ago

Can you provide an installation interface for files like Tar (implement the terminal command in the UI), because it is painful to see the command every time you want to install the Tar package software.

probonopd commented 3 years ago

Are you talking about .tar.gz and .tar.bz2 files? Double-clicking them should get them mounted like disks in helloSystem.

louies0623 commented 3 years ago

yes

probonopd commented 3 years ago

Double-clicking them should get them mounted like disks in helloSystem.

Does it work for you?

louies0623 commented 3 years ago

Does it work for you?

At present, it is opened as a folder, and there is no file in it (it should have a file, when the file is viewed)

probonopd commented 3 years ago

Please post exact step-by-step instructions on how to reproduce this. And please write the exact build number of the ISO you are using. Thanks!

kettle-7 commented 3 years ago

it is opened as a folder, and there is no file in it

What happens if you push F5 in this folder?

It seems to automatically unmount when the Filer process exits, which is immediately because it tries to latch onto an existing Filer process.

kettle-7 commented 3 years ago

Wait...

That might be the issue!

kettle-7 commented 3 years ago

Yep. There's nothing telling Python to remain open once the archive has been mounted, so it waits for the launch process to exit, which is almost immediately, then exits itself, killing all of its subprocesses.

probonopd commented 3 years ago

I cannot reproduce this issue. Please describe exactly:

kettle-7 commented 3 years ago

daa8daf (if we add an update feature I'll use it :~)

Mounting any archive shows its contents for a bit, then opening any of them or pushing f5 shows file not found or something similar.