Re: Appimage and/or flatpack to replace some distro specifik packagings?

Morganol wrote:

Is it possible to launch the appimages with some parameter or other trick to make them use different folders of symbols, templates, drawings?

Yes !

By example : If I want to use new folder "test-0.5" in my HOME QET directory, you need to add argument  --config-dir=   to your AppImage.

./QElectroTech_0.5-x86_64.AppImage --config-dir=/home/laurent/.qet/test-0.5/

Or If you want to use other common collection (--common-elements-dir argument) :

./QElectroTech_0.5-x86_64.AppImage --common-elements-dir=/home/laurent/0.5-test/




You could also extract Appimage and change QET arguments in AppRun file.
https://github.com/AppImage/AppImageKit … -AppImages

./QElectroTech_0.5-x86_64.AppImage --appimage-extract

/squashfs-root$ cat AppRun 
#! /bin/sh

cd $(dirname $(readlink -f $0))/usr/bin/
exec ./qelectrotech --common-elements-dir=../share/elements/ --common-tbt-dir=../share/titleblocks/ --lang-dir=../share/lang/ $@ 

https://github.com/AppImage/AppImageKit … irectories 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Wonderful, thanks nomicons/smile 

1) Maybe you could copy or link that informations at the appimage download page?  (and later in some manual...) plus a link to https://appimage.org/ where users can learn about appimage, how to run it, and they may want to use firejail.

2) I see you have added appimage links to 0.6 and 0.7 versions at https://qelectrotech.org/download.html . You can also add one for 0.5.

3) Now you can get the news out and attract more users by getting it listed where Appimages are listed. I know of https://bintray.com/probono/AppImages , https://appimage.github.io/apps/ , maybe there are more places.

Re: Appimage and/or flatpack to replace some distro specifik packagings?

@Morganol :

FYI, if you want interest to know how I create the QET AppImages provided here on the download page:

https://qelectrotech.org/wiki_new/doc/p … n#appimage

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Thanks.  I am sure it if of interest to many.  Maybe you could even put such procedures on the wiki?

Myself is on a kind of computer diet period.  Instead, i do much mechanic work and practical watering, hands-on-controls repair, repairing a tractor and such things currently. nomicons/smile

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Flatpak, humm..
https://github.com/flatpak/flatpak/issues/875 

Post's attachments

Attachment icon org.qelectrotech.json 601 b, 385 downloads since 2018-10-17 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

https://linuxfr.org/news/apports-de-fed … ns-flatpak

Owen Taylor travaille sur l’infrastructure de Fedora pour apporter de quoi construire des applications Flatpak directement, en parallèle des formats RPM classiques. L’objectif est de faciliter la vie du mainteneur, qui pourra concevoir en une fois la construction des deux formats. 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

That sounds good nomicons/smile
Google-translated:

Owen Taylor is working on Fedora's infrastructure to bring in building Flatpak applications directly, in parallel with standard RPM formats. The goal is to make life easier for the maintainer, who can design the construction of both formats in one go.

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Add a Flatpak manifest, thanks to Mathieu work. nomicons/wink
https://github.com/qelectrotech/qelectr … or/pull/18

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Please try it. nomicons/wink
0.8-dev flatpak.

flatpak remote-add --user --no-gpg-verify qet-devel https://download.qelectrotech.org/qet/builds/Flatpak/
flatpak remote-ls qet-devel
flatpak install qelectrotech

For upgrade version:

flatpak update
laurent@debian:~/qet_git$ flatpak install qelectrotech
Looking for matches…
Remotes found with refs similar to ‘qelectrotech’:

   1) ‘Flatpack’ (user)
   2) ‘qet-devel’ (user)

Which do you want to use (0 to abort)? [0-2]: 2
Found ref ‘app/org.qelectrotech.QElectroTech/x86_64/master’ in remote ‘qet-devel’ (user).
Use this ref? [Y/n]: y

org.qelectrotech.QElectroTech permissions:
    ipc   wayland   x11   dri   file access [1]   dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar


        ID                                       Arch             Branch           Remote              Download
 1. [✓] org.qelectrotech.QElectroTech            x86_64           master           qet-devel           14,3 MB / 13,9 MB

Installation complete.

laurent@debian:~/qet_git$ flatpak info org.qelectrotech.QElectroTech

QElectroTech - Éditeur de schémas électriques

          ID: org.qelectrotech.QElectroTech
         Ref: app/org.qelectrotech.QElectroTech/x86_64/master
        Arch: x86_64
      Branch: master
     License: GPL-2.0+
      Origin: qet-devel
  Collection: 
Installation: user
   Installed: 73,7 MB
     Runtime: org.kde.Platform/x86_64/5.14
         Sdk: org.kde.Sdk/x86_64/5.14

      Commit: 96aa0777118c605ac266aebc9d0b9f2ddaf743d59bb9466b478cd3da44c93429
      Parent: cfcadaafc99c3bc354efa7a4b6081f06fec00776b1b6cfcdf5630e222324f092
     Subject: Export org.qelectrotech.QElectroTech
        Date: 2020-02-17 14:19:52 +0000
laurent@debian:~/qet_git$ 

Next step : make a .flatpakref for finish repo signing.
Enjoy ! nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Edit : I moved the repo to the download server, see new URL.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

1) Import the public key

flatpak remote-add --gpg-import=qelectrotech.org.gpg \
qet-devel https://download.qelectrotech.org/qet/builds/Flatpak/

2) Install qet-devel flatpak

flatpak install https://download.qelectrotech.org/qet/builds/Flatpak/org.qelectrotech.QElectroTech.flatpakref
org.qelectrotech.QElectroTech permissions:
    ipc   wayland   x11   dri   file access [1]   dbus access [2]

    [1] host, xdg-config/kdeglobals:ro
    [2] com.canonical.AppMenu.Registrar


        ID                                     Arch            Branch          Op         Remote            Download
 1. [✓] org.kde.Platform                       x86_64          5.14            u          flathub            2,1 MB / 323,1 MB
 2. [✓] org.kde.Platform.Locale                x86_64          5.14            u          flathub           16,7 kB / 337,0 MB
 3. [✓] org.qelectrotech.QElectroTech          x86_64          master          i          qet-devel         14,3 MB / 13,9 MB

Changes complete.

Enjoy ! nomicons/wink

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Tried to update the QET AppImg file, but it seems it isn't ready for that mechanism yet. So

Could not find update information in the AppImage. Please contact the author of the AppImage and ask them to embed update information.

consider yourself contacted and asked. ;-)

When there is time...
See also https://appimage.github.io/AppImageUpdate/

Post's attachments

Attachment icon qet_update.png 82.75 kb, 77 downloads since 2021-03-17 

Re: Appimage and/or flatpack to replace some distro specifik packagings?

q.e.d wrote:

Tried to update the QET AppImg file, but it seems it isn't ready for that mechanism yet. So

Not at this time.

I have to study the documentation for this and adapt my script and or repository?

https://docs.appimage.org/packaging-gui … dates.html
https://github.com/linuxdeploy/linuxdep … -variables
http://zsync.moria.org.uk/server

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

For flatpak:

1) Is there a way to specify version?  It seems only development version is available?

2) I suppose that like for Appimage, i can add to the launch command the options --common-elements-dir= and --config-dir=  ?

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Yes only development version is available on my repo.

For 0.8 version see https://github.com/flathub/flathub/pull/2146

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Nice to see it is on the way nomicons/smile

Re: Appimage and/or flatpack to replace some distro specifik packagings?

https://github.com/flathub/flathub/pull … -809636619

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Appimage and/or flatpack to replace some distro specifik packagings?

Great nomicons/smile

Quick test OK on my workstation:  Mageia 7 64 bit Plasma, Xorg nvidia-current
Works: New drawing, save, close program, launch again, open, export pdf.

Printing fail: no printer in list to select!  (workaround: export pdf)
(FreeCAD installed on same system list printers and can print)

Sidenotes:  It would be positive:
§ if the saved file contian program name and ULI to project home page nomicons/smile
§ make sure file save name ends in ".qet"
§ make sure saved pdf name ends in ".pdf"

Flatpak user question:
I fail to see how to launch the 0.9 version still installed - listed by "flatpak list", but same Program ID.