Oh, gee, yet another package manager (to rule them all) to learn⊠UGH
arth:flatpak install /Tmp/com.plexamp.Plexamp.flatpakref
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/andrew/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
The remote 'flathub', referred to by 'com.plexamp.Plexamp' at location https://dl.flathub.org/repo/ contains additional applications.
Should the remote be kept for future installations? [Y/n]: Y
Required runtime for com.plexamp.Plexamp/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/20.08) found in remote flathub
Do you want to install it? [Y/n]: Y
com.plexamp.Plexamp permissions:
ipc network pulseaudio x11
dri dbus access [1] bus ownership [2]
[1] org.freedesktop.Notifications
[2] org.mpris.MediaPlayer2.Plexamp
ID Branch Op Remote Download
1. [â] org.freedesktop.Platform.GL.default 20.08 i flathub 105.8 MB / 106.4 MB
2. [â] org.freedesktop.Platform.GL.nvidia-510-73-05 1.4 i flathub 329.7 MB / 330.1 MB
3. [â] org.freedesktop.Platform.Locale 20.08 i flathub 17.7 kB / 322.3 MB
4. [â] org.freedesktop.Platform.openh264 2.0 i flathub 1.5 MB / 1.5 MB
5. [â] org.freedesktop.Platform 20.08 i flathub 266.4 MB / 270.3 MB
6. [â] com.plexamp.Plexamp stable i flathub 85.4 MB / 85.2 MB
Installation complete.
Oh and more things to configure! Great! Why didnât the apt install of flatpak fix this when it was installed? And a whopping 803 Meg instead of a measly 83M. Nice.
OK so how do you run this thing now? I type in plexamp and get command not found. Looking into the warning about XDG_DATA_DIRS.
Earth:export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:/home/andrew/.local/share/flatpak/exports/share
Earth:plexamp
plexamp: command not found
Earth:
Still no joy.
Apparently I have to run /var/lib/flatpak/exports/bin/com.plexamp.Plexamp. Well, thatâs easy to remember! Why didnât I think about that before? At least it runsâŠ
Now I have more crap in my home directory and a strange way to start this app.
Now if there were only a way to quit this app without having to kill itâŠ
I was simply trying to work with you to troubleshoot the problem. You can feel free to continue using the AppImage build if we can get it working again for you.
Unfortunately (as youâve now encountered), Ubuntu doesnât provide a great experience out of the box with Flatpak (theyâre pedalling their competing, and IMHO inferior, Snap format instead).
This is down to how Flatpak works. The first flatpak you install will pull in its runtime dependencies (freedesktop platform, mpris etc). The second flatpak you install wonât need any of that, as they can share their dependencies, as long as the versions are compatible.
AppImage doesnât bundle any dependencies, but as a result can run into weird environmental issues where system-provided libraries may not be compatible with the application, which is what I suspected might be happening in your case.
Additionally, flatpak upgrades are âdeltaâ upgrades, so future updates to the app should usually be (very) small, in the range of 2-5MB or so in my experience. AppImage canât do that.
You shouldnât have to do that. Flatpak apps are namespaced and can be run by their unique identifier, e.g. flatpak run com.plexamp.Plexamp.
Alternatively, the application comes with a .desktop file, so it should integrate in all the usual ways you expect an app should (application menu, shelf, whatever desktop environment youâre using), so no need for command-line launching at all. This is another area where our Flatpak build is better than the AppImage one.
Not a good nor professional answer. Hopefully, you werenât serious. Plexamp is not a way of life. Maybe itâs a way of life for you but for me, I have a life, and itâs not Plexamp.
Understood but so far, to me, flatpak is unimpressive and just another way of doing the same old thing - installing software.
Both suck.
Again, understood. But Iâd argue that any system that requires 800 meg to operate is horribly broken!
This is an age-old problem that has been around forever - at least in the 45 years Iâve been doing this. Many people have solved this issue. But it occurs to me as long as we keep inventing new ways to install software and handle dependencies (yum, dpkg, apt, flatpak, snap, appimage, yadda, yadda, yadda) all we are really doing is insuring these basic system problems will only multiply.
Not looking for appimage to be the be-all, end-all. Instead what I want is just to have the distroâs native way of installing apps, install the app. Is that asking for too much?
Oh, thatâs much better!
Dumb question here but how exactly was I to discover this magical encantation? Stated differently, do you think itâs wrong for a user to expect to run an application called plexamp with the command plexamp?!?
.desktop files are not much better if you ask me. Iâm not afraid of launching stuff from a command line. Indeed, flatpak run com.plexamp.Plexamp is but a CLI invocation is it not?
Personally I prefer just plexamp as in /bin/plexamp, you know like 99% of the other âappsâ I run.
And I really fail to see how flatpak run com.plexamp.Plexamp is better than an appimage - or what we used to call back in the day - a program.
Look Iâm in software development too and I truly do understand a number of the issues with installers for the various different flavors of Linux and other architectures that are around. But this is a problem of our own creation. Creating yet another way to do something thatâs gonna be better and that everybody will use has been a pipe dream forever. Making things more complicated does not make it better (AKA why the hell doe flatpak have to be involved in running a simple application?!?).
And having to tote along a gig runtime just to run a media, music playing app is ridiculous. Take a step back from the technical details and realize whatâs is being askedâŠ
So you got your flatpak troubleshooting data. AppImage is still broken. Maybe try .debâŠ
Iâm not going to win you over on the âflatpak is betterâ argument, Iâm confident you donât agree, and to each their own. Choice is power.
What I can say is that flatpak runs everywhere we want Plexamp to run, and thatâs why we chose it. The honest truth is that Linux doesnât have the user numbers to justify development, compute time, hosting, and QA resources to build a different ânativeâ package (.rpm, .deb, etc etc) for all the distributions under the sun when Flatpak is supported natively, out of the box on almost every distribution other than Ubuntu (see: Fedora/RedHat, Arch and derivatives, Debian and derivatives, and even Ubuntu downstreams like elementary, Mint etc).
Beyond that, flatpak solves real world problems that native packages donât, at a slight cost to initial user bandwidth (but not long term bandwidth, which is ultimately saved when compared to native packages), and a slight learning curve for users who prefer not to use their apps via their OSâs GUI.
Most people launch their apps via the GUI, not CLI. If youâd rather use CLI, itâs documented in Flatpakâs docs and man page. Try flatpak --help.
The benefits of flatpak over appimage have nothing to do with how many characters a CLI invocation requires. Off the top of my head:
App store-style distribution
Native integration with freedesktop standards (portals for permissions etc)
Better sandboxing and security means Plexamp (or other packages) donât have anywhere near the level of access to your system
Seamless autoupdates without us having to run infrastructure behind the scenes
Less QA and testing, as it eliminates a lot of the issues with system library incompatibility
Support for all distributions, even the obscure ones. I run an immutable host with Silverblue, and Flatpak works beautifully there.
FWIW the appimage wouldnât have run with a simple plexamp invocation, either. If the longer terminal command is that annoying to you, feel free to alias it
Thanks. Iâm not currently able to reproduce the same crash, but I suspect our next release may resolve your problems with the appimage bundle. Letâs revisit this then!
All this seems like a development problem to me. As a developer I understand, however, as a user, I donât care about development problems. Those are yours to solve. And I might add, not require me to radically change how I am currently doing things.
Did I miss something? How exactly was I supposed to launch this flatpak Plexamp app? Where in my OSâs GUI was this (Ubuntu 22.04 running MATE)? There was no new menu item added nor was there any kind of desktop shortcut. Did flatpak not offer such functionality? I thought it worked everywhere.
Excuse me but isnât flatpak --help something one launches from the CLI? Again, I saw no GUI way to launch this app and wouldnât have even thought to run flatpak --help or to figure out how to run any application other than, well, flatpak! I donât look to yum, or apt, or dpkg to run apps - I look to them to install apps. I know now but granted, this is not a normal way that a computer user would think of launching an app. It hasnât been the way weâve launched programs for some 40 years.
And neither was my beef about this. My beef was that people donât think âGee I just installed an app. To run it I just need to invoke the installer again with a run commandâ. Nor would I have thought that plexampâs real name is com.plexamp.Plexamp. Itâs just not natural, not the way weâve always done it, and just doesnât flow. Iâm smart enough to know how to change the longer command to something more palatable, but my point was not that, it was that it was not intuitive how to execute the application. There was no GUI launcher that I could see so I had to go out hacking for the answer. Thatâs never a good UX.
Youâre making invalid assumptions. I didnât say, nor mean to imply, âAwe thatâs too much for me to typeâ. Iâm quite capable of typing - hell just see this post! No, the point was that it was not intuitive and appears to be wasteful. Let alone that I want to have to use apt for most installations but need to use snap to install firefox and flatpak for plexamp. Flatpak may ease your development burden but with all these competing methods, from my vantage point, it only complicates my burden. See how choice can often be confusion?
When you first configured the flatpak system on your OS, the below message indicates you need a restart:
I only mentioned it because it seemed from your reply that you preferred using the CLI. If thatâs not the case, try restarting, and let me know how it goes!
Agreed. Sadly this is the result of Canonicalâs refusal to ship a well-integrated flatpak runtime. See Mint as a good example of an Ubuntu base that supports both Snap and Flatpak well out of the box.
So youâre saying I need to reboot my system because I installed an app and this would magically appear in my menu? All by simply adding these directories to some environment variable where the first directory just had a few directories under it and the second directory doesnât exist at all? And where do I go about setting this envvar? No instruction was given. I gotta see how this will work however I only reboot when forced to so maybe in a few weeks⊠But trust me you only need to do this onceâŠ
As for flatpak on Ubuntu, well it was you who said this works everywhere. Now we come to find it doesnât work that well everywhere after all and considerably more effort and learning are required. Again, I fail to see why flatpak is superior. I mean I see it may be handy for you but again, it ainât handy for me! Itâs just yet another package manager I need to learn (never mind language developer package installers like cpan, pip, gems, etc. Choice, thatâs the ticket! Itâs powerful.
The history and workings of running things on Unix and later Linux is that you install an app into /bin or /opt or some directory and the user only need to add that path to their PATH envvar if not already there. Viola, everything works. Now I have find the place that I have to add paths to some envvar and reboot my computer to make sure itâs effective. Or learn to invoke some installer to find and run the app for me, or somehow seem to find the appropriate place it put the GUI button that I can push to launch the app.
Funny but when I install something with apt it installs, is usually in /bin, and is conveniently added to my main menu. Oh yeah, I can see how flatpak is superiorâŠ
Look, Iâm not totally against the idea of a more universal installer for the various Linuxes - itâd be a good thing. What Iâm against are umpteen different package managers in which each one thinks itâs the best, the one ring to rule them all. Trust me but my history with this always seems to point to just a mess of similar tools, all with their own pros and cons.
Sorry, you feel that way. I was not trying to give you an attitude. Perhaps you could point out where I said something untruthful.
Also not sure why you think Iâm unwilling to help you. I did install both flatpak and plexamp and verified that the flatpak installation has no issues. I didnât need to do that.
As for rebooting in order to see if that works, sorry man but I have other things I need to use my computer for right now but I will try to let you know when I do restart my machine if it works. Then again, you seem to be unwilling to continue maybe Iâll not botherâŠ
Iâve read this thread⊠Sorry adefaria, but your negativity doesnât help. Elan and the Plexamp team are in a word⊠âawesomeâ. Drop the negativity and you may get somewhere with your thoughts/suggestions.
Iâm being truthful. The truth is not always positive. For example, you state that plexamp is âawesomeâ which is clearly an opinion. Iâve shown that plexamp dumps core, which is a fact. Iâve also stated my opinion of flatpak, again, based on the factual experience I had. Sorry, it wasnât positive.
Iâm not looking to âget anywhereâ rather I was merely reporting a problem.
Next time I wonât report anything because I donât need people to call me negative for reporting negative things. After all, I didnât create them.