News for hackers. Stuff that matters.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by jdoss on Thursday February 23, 2023 @05:29PM (#34917573)
I used to think Flatpaks were a huge pain the butt, but over the last few years, I moved to using them for all third party software that I run on my Fedora Linux workstation. Zoom, Slack, Spotify, Steam, Discord, Obsidian all run without issues and they get consistent updates. I am convinced now that they are one of the best ways to ship commercial software on to Linux desktop. Flatpak has been a key part of me becoming 100% Windows free for my PC gaming. Not having to run a desktop KVM to switch between my work workstation and my Gaming PC has been super great.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by idonotknowwhy on Thursday February 23, 2023 @05:38PM (#34917697)
So these integrate well now? I normally just use AUR for everything now, and remember having issues with a flatpak for rpcs3 a few years ago, ended up compiling from src
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by irthomasthomas on Thursday February 23, 2023 @07:05PM (#34918714)
No, most that I tried do not integrate well at all.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by stjohnswarts on Thursday February 23, 2023 @08:02PM (#34919224)
integrate with what?
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by boudin on Friday February 24, 2023 @03:35AM (#34922319)
Yes, actually flatpak triggered some interesting projects that are going beyong flatpak now: - pipewire for audio/video stream management that allows sandboxing - xdg-desktop portals to integrate the sandboxed apps in the host desktop environment and operating system. It's what allows the host DE ui to grant permissions (like reading/writing a file, accessing screen share, etc...)

It will depend how an app has been packaged, but when well done the sandboxing is invisible.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by silisili on Thursday February 23, 2023 @05:36PM (#34917664)
I really like the idea.

I think the only issue I ever had with them was the inability to inject files inside. Do you know if that's possible?

I was trying to use a browser, I think Vivaldi, that had instructions for enabling widevine by copying a file to a certain directory, but I couldn't find a clean way to do so.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by FeistySkink on Thursday February 23, 2023 @07:08PM (#34918747)
If it's just a config file and the package is installed under a user, check .var/lib/flatpak/app
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by jchw on Thursday February 23, 2023 @05:37PM (#34917680)
One big tricky thing is plugins, such as for OBS. ABI incompatibility and sandboxing can make it tricky and confusing for end users. Flatpak itself could theoretically provide answers here.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by sirsinsalot on Thursday February 23, 2023 @06:08PM (#34918100)
I feel like you'd end up going full circle back to apt and npm and ...
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by viraptor on Thursday February 23, 2023 @06:12PM (#34918151)
They'll have to do it at some point. There's just too many apps with plugins to ignore it. (Including basically all of audio production with their VSTs)
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by lmm on Thursday February 23, 2023 @06:37PM (#34918413)
Yep. The main way I notice that an app is using FlatPak is it becomes impossible for me to type Japanese in it because the person distributing it hasn't done the complicated stuff you have to do to make IME work with FlatPak.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by jchw on Thursday February 23, 2023 @07:35PM (#34919005)
I really hope Wayland helps here. It has an IME input API, so if that's sufficient, maybe it can displace out-of-band input buses on the application-side.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yamtaddle on Thursday February 23, 2023 @05:42PM (#34917748)
Last I tried all three of the semi-popular formats like this, AppImage was the only one that didn't feel fundamentally wrong (though what I gather was the closest thing to an official repository for them looked sketchy as hell—somehow they copied the exact CSS vibe as a content-scraped StackOverflow spam site). But that was a couple years ago. I know Snaps still suck, but haven't messed with Flatpacks since then, so maybe they're better now.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Thursday February 23, 2023 @06:12PM (#34918144)
How many different versions of OpenSSL are running on my laptop right now? Who can say? That's the beauty of flatpak: if you sweep the problems of software management under a big enough rug, they go away and never bother you again.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by klooney on Thursday February 23, 2023 @06:30PM (#34918332)
Flatpak has a concept of shared base layers, so if you update frequently you might notice 'org.gnome.Sdk' or whatever getting updated. This is a way to handle lots of the most popular shared dependencies.

Besides, sufficiently quality minded projects always wind up vendoring all of their dependencies anyway. There's a reason Chrome has their own fork of everything down to the compiler.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by redeeman on Thursday February 23, 2023 @06:42PM (#34918471)
i gotta say, if chrome stands out to you as a shining beacon of quality, i'd hate to hear about what software you consider bad
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by afavour on Thursday February 23, 2023 @07:03PM (#34918702)
I know “Chrome bad” is a meme-level comment at this point but it’s a hugely impressive piece of software, basically an operating system unto itself at this point. Not to mention the V8 engine etc.

Plenty to criticise about it from a product perspective but from an engineering one it is kind of a marvel.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AYoung010 on Thursday February 23, 2023 @07:39PM (#34919030)
I think there's a strong argument to be made that modern web browsers are a good deal more complex than operating systems -- or at least most kernels.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by jehb on Thursday February 23, 2023 @08:03PM (#34919237)
It all depends on how you draw your Venn diagrams, I suppose. Is Chrome a massively complex browser, or is it some window dressing and bookmark syncing sitting on top of Chromium, that itself is really just a simple UI around the Blink rendering engine. GNU/Chrome, anybody?
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by klooney on Thursday February 23, 2023 @09:57PM (#34920191)
Tbh I kind of see the whole chrome/chromium/blink stack as a single team at Google.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by antonvs on Friday February 24, 2023 @03:05AM (#34922153)
ChromeOS makes those delineations pretty clear.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by megous on Friday February 24, 2023 @12:41AM (#34921270)
Maybe engineers might be enamoured by it. Whatever.

On my GFs computer Chrome starts in about 7 minutes after fresh boot, no other programs running, yet. From a fricking Samsung SSD, 8GiB RAM. All it has to do is show some fake tabs and render a single page content.

Tell about its quality to my GF. She's used to it, but some of these days, I'll check the DNS logs, to see if it's really loading all the 1000 tabs (she keeps open at once), for 0 reason whatsoever, or if it's just that slow to start one page.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by afavour on Friday February 24, 2023 @12:49AM (#34921321)
> On my GFs computer Chrome starts in about 7 minutes after fresh boot, no other programs running, yet.

There is something wrong with your GF’s computer. I have no idea what but a seven minute start time is absolutely atypical.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by smcl on Friday February 24, 2023 @05:06AM (#34922941)
They mentioned 1000 tabs which may go some way towards explaining it. If that's not how you're supposed to use Chrome (I'd understand if it wasn't) then I'd imagine some kind of notification to the user would be helpful. Something like: "Chrome may be a little slow, you have 1000 tabs open" including perhaps a table suggesting tabs that could be closed (i.e. if she's opened https://bbc.co.uk/news in 20 different tabs that were last accessed a month ago) and an easy mechanism to quickly do so.

I actually know of quite a few people who use browsers this way, so it may not be a terrible idea to have something like this.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by megous on Friday February 24, 2023 @09:51AM (#34925020)
The computer is fine, judging by Firefox starting resonably fast with very many tabs to restore for her on that computer.

Also the same chrome profile starts very fast when she uses the "private browsing mode" which doesn't restore any tabs. So it really just seems like chrome having perf issues with tab restore with many tabs.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by afavour on Friday February 24, 2023 @09:58AM (#34925087)
Maybe it’s extensions.

But anyway the point still stands: an outlier user with 1000 tabs open had a slow startup time doesn’t mean Chrome is horribly engineered. If it isn’t an extensions issue then it’s a minor bug.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by imtringued on Saturday February 25, 2023 @06:09AM (#34935702)
Chrome wasn't built for 1000 tabs. You need firefox for that.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by fijiaarone on Thursday February 23, 2023 @09:06PM (#34919787)
Chrome doesn’t have to be a beacon of quality for Firefox to look bad in comparison.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by IncRnd on Thursday February 23, 2023 @11:38PM (#34920834)
> Besides, sufficiently quality minded projects always wind up vendoring all of their dependencies anyway. There's a reason Chrome has their own fork of everything down to the compiler.

It's not about quality. It's about reproducibility of the exact versions of all dependencies. It's about communications with repos not being subverted to load malicious packages. It's build security not app quality, though app quality is a part.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @01:23AM (#34921495)
The SDK is different from the platform itself, but more or less. So I have three versions of Gnome, two of KDE, and three of Freedesktop.org, just based on the apps I run on Silverblue and what version they're at in Flathub. Since I asked specifically about SSL, that's shipped with FDO, meaning I potentially have three versions running right now. Also I have this annoying situation where an app a client uses is using a deprecated FDo runtime and nobody wants to pay to rebuild it.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Gigachad on Thursday February 23, 2023 @06:32PM (#34918353)
Why would I care? Ok Spotify has an old package with some vulnerabilities in it. But flatpak has it sandboxed so the worst you could do is maybe steal my Spotify session token. That's more a problem for Spotify than it is for me. They will go and fix their package and I will reset my sessions.

Meanwhile we have distros lagging behind for years to provide a new package because they can't break all the things depending on the old version.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Rotareti on Thursday February 23, 2023 @07:57PM (#34919179)
> Meanwhile we have distros lagging behind for years to provide a new package because they can't break all the things depending on the old version.

I'm glad I left this category of problems behind me 5 years ago when I switched both, my personal and my work laptop to arch-linux/i3wm. These two machines have been running for 5 years, almost daily, with almost no issues, with the latest software packages. If the hardware lasts, I will go on like this for another 3 to 5 years and then upgrade hardware and (maybe) switch to wayland. I don't see anything on the horizon which would make me switch away from this setup.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by andreareina on Thursday February 23, 2023 @08:09PM (#34919296)
My only complaint about arch/i3 so far is that updating Firefox forces a restart of Firefox, and I've got FF windows scattered over a few workspaces so I need to sift them back to their places.

Come to think of it I can probably prune one of the windows...

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by 99112000 on Thursday February 23, 2023 @09:38PM (#34920060)
I'm almost sure this is an excerpt straight from https://youtu.be/7Nj9ZjwOdFQ
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by andreareina on Friday February 24, 2023 @11:34PM (#34933938)
I'm flattered you think I achieve perfect window placement.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by twojacobtwo on Thursday February 23, 2023 @09:42PM (#34920086)
Would it be possible to create a script to save the desktop and screen position for each firefox window on close and restore them to the recorded desktops and positions on open? I haven't used i3 much (or arch at all), but I'm fairly certain I did something similar using Xubuntu some years back.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by raffraffraff on Friday February 24, 2023 @09:39AM (#34924897)
I did that on xubuntu too. Used xdotool, wmctrl and something else I can't recall.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by andreareina on Saturday February 25, 2023 @12:29AM (#34934176)
I'm vaguely aware of tools that'll do it for i3 but thus far I've just avoided restarting as much as I can. The call-out to James Mickens is not altogether inaccurate (:
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bladderlover23 on Friday February 24, 2023 @02:36PM (#34928951)
Keep in mind that you can downgrade firefox back after the update with pacman -U /var/lib/something, then just refresh/keep using the open windows with no issue.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by andreareina on Saturday February 25, 2023 @12:31AM (#34934188)
Aren't downgrades heavily discouraged in Arch?
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by rashkov on Thursday February 23, 2023 @10:59PM (#34920602)
Been running this same setup for eight or nine years now, extremely pleased with it
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Athas on Friday February 24, 2023 @01:18AM (#34921474)
My impression is that Arch is not technically unusual among distributions, but is simply well-polished, documented, and very active (and has an easy way to install unvetted community packages). If this impression is correct, you still run the risk of unnoticed outdated software if the amount of volunteers drop, or a particularly critical one no longer has the time.

Which part of Arch's design prevents the issue described in the grandparent post? The issue is "distros lagging behind for years to provide a new package because they can't break all the things depending on the old version", which is solvable either with enough manpower or by sandboxing a la NixOS, where you can keep old versions around indefinitely for the things that need them. Does Arch use such sandboxing now?

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by SSLy on Friday February 24, 2023 @04:09AM (#34922571)
>Which part of Arch's design prevents the issue described in the grandparent post?

As a former long-time Arch user, you're correct. It's "just" a distro not unlike the biggest one. The reason Arch repos are fairly well updated and big is the relatively easy to understand PKGBUILD format and the tooling around it, which lessens friction on package management.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by majewsky on Friday February 24, 2023 @07:52AM (#34923960)
The impact of having frictionless package building cannot be understated. I'm publishing Arch Linux packages for all my applications because it takes just a few minutes to write up a PKGBUILD. Then one time, I tried providing a Debian package as well, but I gave up after several hours of trying to get through all the bureaucracy of the tooling.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by imtringued on Saturday February 25, 2023 @06:01AM (#34935662)
The difference is that arch doesn't have downstream forks of repositories. They just package the upstream versions which means the dev cycle is much tighter which in turn means they can update more frequently which means they just switch to the next major version and don't worry about breaking their special sauce forks. The downside is that there are people using old distros and stuck with old major versions who use eg. Python 2 by default.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by LeFantome on Saturday February 25, 2023 @03:47PM (#34940300)
Regardless of the explanations, as an Arch user, I think you have to at least acknowledge that Arch does not have this problem in practice. I am sure there are counter-examples but in almost all cases Arch packages are extremely up to date. If they are not, it is probably a package you are not even going to find on another distro.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @01:17AM (#34921469)
Lagging isn't always a bad thing. Users of Debian Stable missed Heartbleed entirely.

But this gets to the mindset that bugs me about Flatpak, the magical thinking that regressions don't happen. It's why Alice can't downgrade a system flatpak because it might introduce a vulnerability she uses to attack Bob, but it's absolutely fine if she upgrades to introduce that vulnerability.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by gapan on Friday February 24, 2023 @02:28AM (#34921928)
While I generally agree with you with respect to the mindset, it is actually possible to downgrade a flatpak [1]. It is rather involved, but possible. I have done it to downgrade cheese (the webcam app) since newer versions don't have the filters that older ones did, at least not for me.

[1]: https://itsfoss.com/downgrade-flatpak-packages/

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by UltimateEdge on Friday February 24, 2023 @05:03AM (#34922919)
> it is actually possible to downgrade a flatpak

Only when the version you want to downgrade to happens to be within the last 10 versions! Why 10? Beats me!

Case in point: the flatpak package for the Element messaging client seems to be the preferred installation method for non-debian distros. But for many users, encrypted message search is broken! [1] [2] Some users claim that downgrading can fix the issue, but the flatpak has been updated too many times now for any user to downgrade to an old enough version - tough luck!

[1] https://github.com/vector-im/element-web/issues?q=is%3Aissue... [2] https://github.com/flathub/im.riot.Riot/issues?q=is%3Aissue+...

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @06:24AM (#34923393)
It is! I have to do it with Mixxx because of some weird GL bugs they're having in 2.3.3. But it's a privileged operation compared to upgrading, which is crazy.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by progval on Friday February 24, 2023 @02:38AM (#34921999)
> But flatpak has it sandboxed so the worst you could do is maybe steal my Spotify session token.

It has access to X11 <https://github.com/flathub/com.spotify.Client/blob/0856c7641...>, so it could also be running a keylogger.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by jhoechtl on Friday February 24, 2023 @04:03AM (#34922529)
Which is an issue of the X architecture less of flatpack. Wayland is there for a reason
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Nasreddin_Hodja on Friday February 24, 2023 @06:42AM (#34923516)
> But flatpak has it sandboxed so

Sandboxing should be a separate tool independent of packaging systems and anything else .

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by littlestymaar on Friday February 24, 2023 @07:24AM (#34923767)
> But flatpak has it sandboxed

With an open sandbox by default for many apps…

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Friday February 24, 2023 @07:39AM (#34923864)
You are thinking of Snap probably. Some flatpaks have $HOME wide-open, but Flatpak itself has no mechanism to completely bypass the sandboxing, as evidenced by things like Wireshark being unable to actually capture packets and many IDEs being unable to actually call build tools.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yencabulator on Friday February 24, 2023 @12:15PM (#34926913)
> Some flatpaks have $HOME wide-open, but Flatpak itself has no mechanism to completely bypass the sandboxing

The first one is the second one.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Friday February 24, 2023 @12:57PM (#34927495)
We're obviously using extremely different definitions of the word "completely". Flatpak sandboxes more than just file system access.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yencabulator on Friday February 24, 2023 @01:12PM (#34927724)
And write access to $HOME lets a process climb out of the sandbox.

Trying to make sense of Flatpak's threat model is just near-impossible. It might protect you from something, if the specific app's configuration told it to do so. Starting a random Flatpak app, you have no guarantees, and the UX doesn't communicate anything about this.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Friday February 24, 2023 @02:46PM (#34929106)
I totally agree about letting applications determine their own defaults being a bad idea.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Gigachad on Friday February 24, 2023 @04:52PM (#34930632)
We are in a transition period. Starting with getting apps packaged in flatpak even if it doesn’t improve security, and then once that’s all done we can start tightening the restrictions.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yencabulator on Friday February 24, 2023 @05:09PM (#34930839)
We shall see. "And then, we add security" has so far never won.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by littlestymaar on Saturday February 25, 2023 @04:13PM (#34940541)
In that case can you please at least stop advertising flatpak for its security until it happen to be secure eventually…
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yjftsjthsd-h on Friday February 24, 2023 @09:19AM (#34924715)
If every application is properly sandboxed, and the sandbox has zero holes, then it's fine. I don't believe either.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by goodpoint on Friday February 24, 2023 @10:37AM (#34925530)
> But flatpak has it sandboxed so the worst you could do is maybe steal my Spotify session token

You are cherry-picking the spotify session token while many other applications have valuable personal data.

Also sandboxing is also implemented by the OS. It is not an advantage of flatpak.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by IncRnd on Thursday February 23, 2023 @06:29PM (#34918326)
Multiple copies of openssl is an problem that updates will hopefully solve.

Multiple versions of openssl is a security problem that merely updating cannot solve.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Volundr on Thursday February 23, 2023 @06:15PM (#34918179)
Until openssl has another vulnerability.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yamtaddle on Thursday February 23, 2023 @06:29PM (#34918325)
It's a problem of the many-distros model for Linux—or, if you prefer, it's a problem of Linux just being a kernel. You can't just target "Desktop Linux 15" and expect to have all the stuff that Desktop Linux 15 has, including a robust set of basic libraries and a unified GUI stack and standard same-on-every-copy-of-Linux-15 multimedia libraries and services and all that good stuff, and let the OS worry about keeping that secure without breaking your program. Programs end up having to be a lot more fiddly about their dependencies, and it causes problems.

Now, maybe the Linux approach is so good and useful in other ways that it's worth putting up with that, but it is a big problem and people are going to solve it, one way or another. If the model can't be changed, then the only solutions available may be bad, but they'll be used, and widely.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by fijiaarone on Thursday February 23, 2023 @09:12PM (#34919836)
Freedom bad.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by goodpoint on Friday February 24, 2023 @04:25AM (#34922681)
> It's a problem of the many-distros model for Linux

No, it is not. If you want security you need dependency management and software lifecycle management on all OSes and platforms.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by serf on Thursday February 23, 2023 @07:46PM (#34919095)
>How many different versions of OpenSSL are running on my laptop right now? Who can say?

but that's a problem, too.

i'd rather all things on a system be bottleneck-forced into using the latest version of security libraries that my system is actively updating; yes, this causes issues, but not issues like "There was a huge vulnerability found in X version Y, does it affect me?".

in other words, i'd rather have system breakage than insecurity. That's a personal taste, I admit.

that said, the sandboxing aspect behind 'the new ways' is fantastic.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Thursday February 23, 2023 @10:38PM (#34920468)
Why don't you just turny our computer off then? It can't be exploited if it isn't actually running.

Which is to say most people use a computer to run software, so if the software doesn't run the security is pointless anyway.

Sure, if only some software breaks and you can wait for fixes that's a tradeoff, but given that in package maintainer land those fixes could be months or years away...

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @01:33AM (#34921561)
I do love the sandboxing, granted. But "let's just hope the app maintainers keep up with our rolling platform deprecations" is a horrible idea.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by api on Thursday February 23, 2023 @08:03PM (#34919236)
That’s what the whole container revolution was about: “fuck it, we’ll just tar up entire Linux file system images to distribute stuff.”
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by littlestymaar on Friday February 24, 2023 @01:33AM (#34921556)
> How many different versions of OpenSSL are running on my laptop right now? Who can say? That's the beauty of flatpak

And how many of them are critically out of date because the software maintainer didn't update? Who can say? That's the beauty of flatpack (not).

With flatpack you have all the downside of static linking with none of its advantages, how exciting. (and there's nothing as cool as having 7 full linux distros installed on your computer at once, just because software can't agree on which base image to use)

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @06:25AM (#34923403)
I suppose it shouldn't surprise me that the sarcasm of my comment wasn't apparent to everyone.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by littlestymaar on Friday February 24, 2023 @07:21AM (#34923748)
Poe's law strikes again.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by goodpoint on Friday February 24, 2023 @04:20AM (#34922647)
> if you sweep the problems of software management under a big enough rug, they go away and never bother you again.

...until attackers find a vulnerability in some library, then you are really in trouble.

Just like docker, the bundling of tons of software into opaque blobs is terrible for security.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bandrami on Friday February 24, 2023 @06:59AM (#34923621)
Yeah I didn't realize people would take the joke there seriously. It's basically looking at package management and saying "this is hard so we won't try".
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by goodpoint on Friday February 24, 2023 @10:10AM (#34925203)
FWIW personally I detected your sarcasm but I replied knowing that the security risk would fly over people's heads here.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by rom-antics on Thursday February 23, 2023 @09:03PM (#34919767)
I wanted to like AppImage, but it just didn't seem integrated well enough. Flatpak gives you:

- Installation (no manually moving files from ~/Downloads)

- Launcher integration (no writing .desktop files by hand)

- Auto updating

As far as I saw, AppImage didn't have any of that. Though it was a while ago (and maybe some of this was my distro's fault). Has any of this improved lately?

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by edflsafoiewq on Thursday February 23, 2023 @09:10PM (#34919820)
An AppImage is just a regular binary. Basically if you have a directory containing a binary plus other files it needs (libraries, assets, etc), AppImage packages the whole dir up into a single binary. That's it. Running the AppImage is the same as extracting the dir and running the binary inside it.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by rom-antics on Thursday February 23, 2023 @09:28PM (#34919980)
Right, it's just a binary. And if I'm installing an app, say Audacity, I would never go to GitHub and download the raw binary, because then I'd have to write the desktop file by hand, and also the app would never get updated when new versions are released. Instead I use a package manager or Flatpak.

How are people keeping their AppImages updated?

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by edflsafoiewq on Thursday February 23, 2023 @10:02PM (#34920225)
I, on the other hand, want exactly that. I've never used a desktop file, and I want to control when and if I upgrade.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by eviks on Friday February 24, 2023 @01:12AM (#34921441)
You can control when, if, and what, as a feature of a good package manager, no need to throw the baby of convenience with it
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Thursday February 23, 2023 @10:42PM (#34920492)
If there had been an adopted standard for embedding icons in ELF, and if common Linux launchers had just been a menuized view of a folder structure, this would never have been a problem.

But Linux Desktop has a nasty habit of adopting over engineered solutions instead of simple ones, especially if any other desktop OS is doing it that way.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by mikae1 on Friday February 24, 2023 @01:18AM (#34921478)
> How are people keeping their AppImages updated?

The only software I run as an AppImage is BitWarden (from the official GitHub repo[1]. It prompts to update itself when there's a new version which works very well.

[1] https://github.com/bitwarden/clients/releases

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by piaste on Friday February 24, 2023 @02:23AM (#34921887)
Bitwarden is also available as Flatpak now. In case "the only software I run as an AppImage" means that you would prefer another format.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by swexbe on Friday February 24, 2023 @02:41AM (#34922013)
Seems a bit like going back to windows...
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by syrrim on Thursday February 23, 2023 @09:55PM (#34920179)
AppImage now has solutions for all three issues. They all rely on a central daemon, which implies they will only work ootb with support from the distribution. The same is true of snap and flatpack as far as I'm aware, so this isn't strictly a deficiency of the format.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by pkulak on Thursday February 23, 2023 @10:43PM (#34920494)
Plus, it relies on system libraries like glibc. You can’t even use it on distros like Void and Alpine.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by mackrevinack on Friday February 24, 2023 @07:18AM (#34923731)
there's a program called 'appimage launcher' or something along those lines, that will show a dialog window anytime you open an appimage and you can choose to just run it once or to integrate it, which copy it into a specified folder where the rest of your appimages are and then also create a desktop shortcut. it doesnt handle updates though

ive been using flatpak more myself these days but i hope the appimage format sticks around because its handy being able to quickly try out some software and then delete it when you are done, or to try out a new version of something and have both running at the same time

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by PhilippGille on Friday February 24, 2023 @12:57PM (#34927502)
It's been several years since I created an AppImage, but I think these were already available back then:

Installation, launcher integration:

https://docs.appimage.org/user-guide/run-appimages.html#inte... https://docs.appimage.org/reference/desktop-integration.html

https://docs.appimage.org/user-guide/faq.html#question-how-c...

Updates:

https://docs.appimage.org/packaging-guide/optional/updates.h...

What was missing was convenient sandboxing. Firejail was recommended but with the responsibility entirely on the user to install and use it.

Flatpak doesn't limit access by default (or rather it does but apps can just ask more permissions at build time and it's not prevented by default IIRC) but offers the user some options for being more strict without needing extra tools.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by lern_too_spel on Thursday February 23, 2023 @11:29PM (#34920763)
AppImage has no sandboxing. A properly packaged (unfortunately, still a big qualifier) Flatpak is safer to run.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by WesolyKubeczek on Friday February 24, 2023 @10:31AM (#34925456)
The quality of the flatpak's sandbox has been rightfully questioned many times. The most atrocious thing about it is that it's the app publisher who decides what the permissions should be. Little wonder that if you go to flatpak.org, you won't even see the words "sandbox", "safe", or "secure".

Nor is their FAQ describing their sandboxing as a security feature, more like (limited) isolation technique.

But this isn't stopping flatpak zealots who just won't shut up about the "sandbox == secure" falsehood.

I don't know, I'd rather prefer a technology which is upfront about its lack of security than one which has glaring hole in what they call (a false sense of) "security". I treat flatpaks and appimages as mostly equal things and use them to keep and run proprietary stuff so that I know it won't be shitting its guts all over the host system.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Entinel on Thursday February 23, 2023 @05:56PM (#34917952)
I use Fedora and this is how I use Flatpak as well. Some software does have some problems when used through Flatpak. I vaguely recall Blender's Flatpak version having some issues. I would also like to see more transparency with who is publishing the Flatpak on Flathub. Maybe I'm just dumb but it is not immediately obvious to me who the publisher is and whether or not this is an officially supported Flatpak application.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by johnny22 on Thursday February 23, 2023 @06:00PM (#34917994)
they are adding a "verified publisher" feature very soon I think. I saw screenshots of the beta for it.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Gigachad on Thursday February 23, 2023 @06:10PM (#34918120)
A whole lot of the flatpaks currently are packaged by 3rd parties and they have all kinds of quirks especially around filesystem access. When the projects officially package a flatpak it's generally all working.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by fdr on Thursday February 23, 2023 @06:21PM (#34918236)
I also use it like this. I got into it for the sandboxing, although I know there are a "few" lurking issues on this point. But, some of the sandboxing definitely works, and were I a flatpak engineer I'd want to see some indication of traction to justify working towards goals of completion, and no other project with any packaging base I can think of is anywhere close, so, I use it.

In fact...I think I have all the software packages you have, except Obsidian, but also, Signal, Anki, and Element.

I did consider using it to deploy and update a CLI on (multiple) Linux(es), but found that the design of common shells make that kind of thing uncomfortable, as you need to teach them about autocompletion and the user also has to muck with getting the utility into $PATH. Normal-style packages simply have the privileges to muck with /etc and /usr/bin and that's the end of that, but it is somewhat unsatisfying that this is almost necessarily the case.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by curt15 on Thursday February 23, 2023 @07:15PM (#34918813)
> I am convinced now that they are one of the best ways to ship commercial software on to Linux desktop.

Commercial software would like a comprehensive and relatively stable API like what Windows famously provides. Flatpak's analog of the Windows API is the runtime. What level and duration of maintenance do Flatpak runtimes typically receive?

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by Conan_Kudo on Thursday February 23, 2023 @08:03PM (#34919239)
Red Hat offers a runtime that has a 10 year lifecycle for applications. Beyond that, I don't know of anything quite like that.

https://developers.redhat.com/blog/2020/08/12/introducing-th...

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by uonpopular_th on Thursday February 23, 2023 @07:19PM (#34918847)
>Zoom, Slack, Spotify, Steam, Discord, Obsidian

Well yes, these are all closed source binaries. In terms of usage it's not all that different to running them in a VM. In the bad old days we just did it in an XP windows VM instead.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by neurostimulant on Thursday February 23, 2023 @08:08PM (#34919279)
I had issues with certain games crashing when run from Steam installed via Flatpak. It's not permission issues, but seems to be due to the Flatpak version bundled different system libraries. Have you encounter such issue on your end?
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bogwog on Thursday February 23, 2023 @08:57PM (#34919721)
I haven’t, but I’m assuming those were (possibly old) Linux native games? Since proton shouldn’t have any dependency issues, especially since Steam installs that itself.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yazzku on Thursday February 23, 2023 @09:07PM (#34919799)
I have seen this, if I recall correctly, on an NVIDIA system. I suspect the Flatpak had trouble working with the (proprietary) driver.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by neurostimulant on Friday February 24, 2023 @01:01AM (#34921382)
I think it was MESA-related, but strangely only some games were having issues.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bogwog on Thursday February 23, 2023 @08:54PM (#34919695)
I switched to Fedora Kinoite (KDE spin of Silverblue) to force me to go all in on Flatpaks, and now I love them.

They make so much sense and work so well. I feel like the people who dislike them either never actually used them, or they’re just the type of person who hates change and will never be happy with new things.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by asmor on Friday February 24, 2023 @04:06AM (#34922554)
Do you use an IDE, and if so, which?

Last I checked Flathub shipped with VSCode and IntelliJ, despite both having major broken parts. The VSCode workaround back when I tried Silverblue was to run sshd inside toolbox and remote Flatpak VSCode into it. It was definitely not a frictionless experience. And IntelliJ having the terminal and debugging broken removes most of the useful parts of the IDE for me.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Friday February 24, 2023 @07:44AM (#34923903)
Yeah, Flatpak has some kind of hangup about the idea that some tools need actually real full access to the system. Wireshark is similarly useless because you can't actually capture packets with it.

It is really strange that both this and "it's totally ok for packages to set their own security defaults" are true in Flatpak land.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bogwog on Friday February 24, 2023 @08:39AM (#34924358)
If Linux starts attracting commercial development and we see an influx of new apps, wouldn't you feel safe knowing that the ones you install as flatpaks aren't allowed to capture packets on your system?

Wireshark is a tool more in the realm of development/sysadminry, whereas flatpaks are designed for more traditional apps, like Discord or Firefox.

I wouldn't want my development tools to come from flatpaks even if they had full access to the system, because I wouldn't have control over dependencies. Traditional system package managers are a better fit for that, and on Silverblue you have Toolbox for that.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by AnIdiotOnTheNet on Friday February 24, 2023 @08:55AM (#34924497)
> If Linux starts attracting commercial development and we see an influx of new apps, wouldn't you feel safe knowing that the ones you install as flatpaks aren't allowed to capture packets on your system?

See, here's the problem with letting packages determine their own defaults. I want the ability to give a Flatpak those permissions, not that they be able to give them to themselves. As it is, Flatpaks can give themselves permission to $HOME without ever notifying me, which I think is just as silly.

In my opinion, Flatpak should support a user-definable default permissions template that says "always permit", "always deny", and "don't care" for any given permission.

> you have Toolbox for that

Actually I agree that when it comes to these collections of software to build an "environment" something like toolbox/distrobox is a better fit. I have my issues with both[0], but the base concept is sound.

[0] For instance: why is podman required? The container functionality required is built into the kernel and podman has a lot of features that are entirely unused. Even bubblewrap has all that's needed and it is included anyway because of Flatpak. I will probably end up writing my own replacement for these tools.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by bogwog on Friday February 24, 2023 @08:06AM (#34924063)
I use Sublime Text, but I’ve also used VSCode, as well as a lot of other similar editors. I haven’t had a reason to use IntelliJ, but I’m sure it would work the same way.

Using development tools as a flatpak is usually not a good idea for many reasons. That’s why Silverblue ships with Toolbox (https://docs.fedoraproject.org/en-US/fedora-silverblue/toolb...).

Flatpaks are kind of like Android APKs, except unlike Android, there’s actually an operating system worth interacting with. An IDE on Android usually needs to include all of the tools it needs. A flatpak is the same, except that’s hard to get right for every development setup, so a toolbox just lets you do whatever you want with it. They’re podman containers with extra features to integrate with the host.

I have all of my development tools installed in a single toolbox, and have .desktop files for the GUI ones so that I can launch them from the KDE app menu as if they were regular apps. With this setup I can use e.g. clangd with the LSP plugin in Sublime Text, execute CMake, use the embedded terminal (Terminus), or the debugger plugin with lldb.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by yazzku on Thursday February 23, 2023 @09:04PM (#34919776)
> Zoom, Slack, Spotify, Steam, Discord, Obsidian

Most of these are proprietary. I view these third-party stores mostly as a way to ship proprietary software. Not sure what else they add, and the downsides of having yet another package manager on top of your system's are obvious. I'm surprised KDE is behind this.

Some sort of packaging standard that works across distributions would be beneficial, but it'd have to be integrated with the system's package manager, not tacked on.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by kombine on Friday February 24, 2023 @04:12AM (#34922595)
If you are not on a rolling distro, it's a major pain to install latest versions of even open source apps.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by pxc on Thursday February 23, 2023 @10:09PM (#34920279)
> I used to think Flatpaks were a huge pain the butt, but over the last few years, I moved to using them for all third party software

I am a Nix person who has been a bit obsessed with package management for a long time, and it's probably fair to call me a bit of a 'container skeptic'. I know many good reasons to prefer other means of installing packages, and I agree with most of them. I care about things like the extra storage overhead, the increased app startup time, the additional complexity associated with portals and sandboxing, the extent to which Flatpak applications do or don't support the available sandboxing features, and the orientation of Flatpak towards enabling a larger proprietary software ecosystem I'm not very interested in.

But despite all of that, and despite my interest in— and to some extent, commitment to— competing paradigms... I think Flatpak does what it tries to do pretty well. It seems to me that the engineers working on it have done a pretty good job of mitigating the downsides and risks, like library duplication and difficulty of shared updates, disk usage, etc. Considering what it aims to do, it feels pretty fast, reliable, and neat. And I trust it way more than an apt or dnf or pacman repo hosted by the likes of Zoom, Google, Discord, etc. It's a much better way to manage third-party software than anything else we've got.

I think it's clearly a good thing that the biggest and most popular desktop environments are coalescing around it. This is good news for desktop Linux users in general, and especially good news for those of us who don't run Ubuntu or derivatives. The more things are packaged for Flatpak, the lower the burden for practical usage of distros maintained by small or new communities.

Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by gavmor on Thursday February 23, 2023 @11:30PM (#34920772)
Obsidian without git plugin is pretty much a non-starter for me. What's the point in a folder full of markdown files that can't be checked into git? Only works out of the box for the AppImage, for now. I can't remember why. I suppose I am missing out on 0-click updates of some kind.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by UltimateEdge on Friday February 24, 2023 @11:05AM (#34925916)
I started using Obsidian a few months ago, and my git repo is initialised on the file system outside the Obsidian vault. I'm now realising that I'm not using any of Obsidian's special features other than being a markdown editor with support for tags.
Re:KDE and GNOME seeks $100k to turn Flathub into a Store fo... by amaccuish on Friday February 24, 2023 @03:39PM (#34929801)
Really want to love flatpaks but I find it disconcerting that so many are published by seemingly random developers. It's a nice fuzzy feel in the Snap store that the packages are actually made by the same people who make the software.