• 2 Posts
  • 135 Comments
Joined 10 months ago
cake
Cake day: November 24th, 2023

help-circle
  • Samueru@lemmy.mltolinuxmemes@lemmy.worldSnap out of it
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 hours ago

    I’m curious, what makes AppImage a good choice for the lazy developer? Is it easier to create?

    The appimage is basically just git clone -> make -> make install DESTDIR=/path/to/AppDir -> wget appimagecreationtool and finally appimagecreationtool /path/to/AppDir and that’s it you have your appimage.

    appimagecreationtool being several tools that can create the appimage from an AppDir, like linuxdeploy, linuxdeploqt, go-appimage, etc

    And that on itself isn’t complex either, it if basically running ldd on the binary, then copy those libraries into the AppDir and finally run patchelf to patch the paths in the binaries and libraries, suyu uses a deploy script instead of using those tools, which I’ve recently forked and began expanding.

    I don’t know how easy it is to make a flatpak or snap, but I do know the dev of zen browser hates dealing with the flatpak and iirc right now the flatpak is outdated as result.

    EDIT: Also lite-xl has been making a flatpak for like 2 years and it isn’t ready yet.



  • Samueru@lemmy.mltolinuxmemes@lemmy.worldSnap out of it
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 days ago

    . If you end up with 4.7GB for runtimes, that’s basically nothing these days

    Yes but that wasn’t the original comment I replied to was about.

    163 flatpaks and the runtimes used 8.7GB

    163 flatpaks using 8.7 GiB means that the average flatpak is using 54.6 MiB.

    That’s good the other time I got this linked: https://tesk.page/2023/06/04/response-to-developers-are-lazy-thus-flatpak/#but-flatpaks-are-easier-for-end-users

    Which is no good as in that example there was 173 flatpaks using 27.66 GiB, average 160 MiB, while in your case the average flatpak is using 91 MiB.


    This is what I have with appimages:

    In this case the average appimage is using 69 MiB, though there is one outliner which is the Steam appimage that I have there (470 MiB) which is an entire conty container with its own video drivers and everything, without it the average would be 56 MiB.

    I know this doesn’t matter these days but once again that wasn’t what the original comment was about.

    Well we are talking about two gigs, after all. Unless you’re using an embedded system, it’s not a much of a concern if you ask me. But it is more, true

    Thanks for the link showing an average flatpak using 54 MiB though, didn’t think it was possible lol.


    WAIT I just took a deeper look at the link, isn’t that guy just showing the runtimes without the applications using 8.7 GiB?


  • I tested installing some web browers, kdenlive, yuzu and libreoffice and without knowing I ended up with 3 different runtimes and the total storage usage (with deduplication) was 4.79 GIB.

    Meanwhile with 33 appimages that I have (which includes same flatpak apps I mentioned) are using 2.2 GiB.

    It doesn’t matter if they share if in the end they end up using several times more storage than the appimage equivalent.














  • would you suggest XDG or creating Symlinks?

    You can do both, and both are easy.

    The user-dirs.dirs file contains something like this:

    XDG_DESKTOP_DIR="$HOME/Desktop"
    XDG_DOCUMENTS_DIR="$HOME/Documents"
    XDG_DOWNLOAD_DIR="$HOME/Downloads"
    XDG_MUSIC_DIR="$HOME/Music"
    XDG_PICTURES_DIR="$HOME/Pictures"
    XDG_PUBLICSHARE_DIR="$HOME/Public"
    XDG_TEMPLATES_DIR="$HOME/Templates"
    XDG_VIDEOS_DIR="$HOME/Videos"
    

    For example if you mount the disk in /media/dirname, it would be something like this, I’m giving it a external-drive name in this example:

    XDG_DESKTOP_DIR="/media/external-drive/Desktop"
    XDG_DOCUMENTS_DIR="/media/external-drive/Documents"
    XDG_DOWNLOAD_DIR="/media/external-drive/Downloads"
    XDG_MUSIC_DIR="/media/external-drive/Music"
    XDG_PICTURES_DIR="/media/external-drive/Pictures"
    XDG_PUBLICSHARE_DIR="/media/external-drive/Public"
    XDG_TEMPLATES_DIR="/media/external-drive/Templates"
    XDG_VIDEOS_DIR="/media/external-drive/Videos"
    

    And for the symlinks, if the drive already has the Desktop, Documents, etc directories. It is as simple as this:

    ln -s /media/external-drive/* $HOME

    That will symlink all the files in the drive to your $HOME

    I suggest you do both because you might run into a program that doesn’t follow XDG user directories.




  • Folders? you mean directories 👀

    Mount the disk (if you ask me at /media/nameofdir) and configure ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs (99% of that time that would be the .config dir in your home lol) and define each XDG_***_DIR= to the respective directory in the path of the mounted disk, no need to make symlinks, though you might need to because there is likely many apps that don’t follow xdg specs.

    I would really appreciate a GUI way

    I know gnome-disks has a GUI way to change the mount options, I don’t know how good it is though.