kiwix / kiwix-desktop

Kiwix for Windows and GNU/Linux desktops
https://download.kiwix.org/release/kiwix-desktop/
GNU General Public License v3.0
736 stars 96 forks source link

Simplification of portable USB creation #461

Open kelson42 opened 4 years ago

kelson42 commented 4 years ago

For people wanting to distribute USB flash drives with Kiwix AND ZIM files, we have a working process. The process is documented at https://github.com/kiwix/kiwix-desktop/wiki/Kiwix-desktop-on-an-USB-Drive-(Portable-version).

The problem is that this is still a bit complicated. This ticket requires to simplify it and has this new workflow proposal: The local library.xml would be automatically based on ZIM files available at the same level like the binary if:

kelson42 commented 4 years ago

@mgautierfr Does that sound reasonable?

mgautierfr commented 4 years ago

Does it means that the "library discovering" order should be :

What happen if a user get a portable kiwix on a usb key and uses it on a computer where kiwix is already installed ?

kelson42 commented 4 years ago

Another way to formulate the request is do like before and if there is no local library.xml and no other library.xml (on the system) which are not empty, then create the local library.xml from the local ZIM files (just aside the binary).

This does not change the discovery system order (even if a newly created library.xml) should be loaded obviously. The generation of the local library.xml is not temprary (even if this might be an idea....).

I think the local library.xml has anyway always priority on any other one of the system?! So this would not change.

mgautierfr commented 4 years ago

Another way to formulate the request is do like before

This is not a spec :) But it seems that you agree with the order I've given.

  1. Use library.xml in local directory if it exists
  2. Use system/user library.xml if it exists
  3. Move library.xml from old/wrong directory to new/good one. (Compatibility with a bug about a wrong directory on windows).
  4. If no library.xml exists (local and system) and local zim files exists. Create a local library.xml with local zim files and use it.
  5. Else, create a system library.xml and use it.

What missing is the step 4.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

rocky-III commented 3 years ago

Hi, first of all: I LOVE KIWIX - thanks so much, I´m using it for quid some time now.

Now I want to use kiwix for offline content on a LIVE USB MX-Linux system with persistent. https://mxlinux.org/ unfortunate this does not work - I can install kiwix by appimage or flatpack and the app does start as well. I can download content but if I try to open the downloaded and installed ZIM files kiwix crashes all the time. This does also happend with smale ZIM files..

I studied this page: https://github.com/kiwix/kiwix-desktop/wiki/Kiwix-desktop-on-an-USB-Drive-(Portable-version)

any of this "Kiwix manage" files: https://download.kiwix.org/release/kiwix-tools/kiwix-tools_linux-x86_64.tar.gz do not work I can´t start them... don´t now why... do I need this files to work in order to open the ZIM files? thanks for your Help.

kelson42 commented 3 years ago

@rocky-III Can you please open a new ticket with the exact step-by-step procedure you do and then the result? We don't need the whole story we just need one concrete example of something not working, but in detail.

rocky-III commented 3 years ago

will open a new ticket - what kind of details you need? is there e.g. a log file I could look for?

kelson42 commented 3 years ago

@rocky-III For example if it crash, what is written on the terminal.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

sgourdas commented 1 month ago

@kelson42 is this a good next issue to work on?

If no library.xml exists (local and system) and local zim files exists. Create a local library.xml with local zim files and use it.

If yes, is this what there is to do?

sgourdas commented 1 week ago

@kelson42 is this a good place to continue to?