News for hackers. Stuff that matters.
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @10:36AM (#17671719)
Snaps and flatpaks are just a vector for malware. They're worse in every way than a traditional package manager. I'm all for packages which containerize their software (we already chroot a lot of software like this), but snaps/flatpaks are just dumb. There's no substitute for your package maintainer personally auditing and preparing the package for you.
Re:Opera launches as a snap for Linux users by bengotow on Thursday August 02, 2018 @12:25PM (#17672735)
> There's no substitute for your package maintainer personally auditing and preparing the package for you.

This is true, but it's not a feasible approach for software like Slack, Spotify, and VSCode that gets updated /weekly/. These aren't packages like 'libgit' that you could validate once and leave the same until you ship the next OS release. Some of these apps completely stop working if you fall behind by too many versions. Having people running older versions is also a huge pain in the ass as a developer, because those users inevitably email support, complain online about how the product is bad, etc. and only after lots of emailing does it turn out they're using a year-old version. (Full disclosure: I maintain Mailspring and switched to Snapcraft /very/ enthusiastically to have an auto-update mechanism that works across linux distros!)

Re:Opera launches as a snap for Linux users by flukus on Friday August 03, 2018 @02:42AM (#17677709)
> This is true, but it's not a feasible approach for software like Slack, Spotify, and VSCode that gets updated /weekly/. These aren't packages like 'libgit' that you could validate once and leave the same until you ship the next OS release

Package managers don't prevent this at all. If you host the repository then you can update as often as you'd like. Some whole distros (arch) do just this.

Re:Opera launches as a snap for Linux users by evand on Friday August 03, 2018 @04:05AM (#17678051)
You can update as often as you like, but that does not ensure users will get that update, nor does traditional packaging make it safe to install the update (no rollbacks, maintainer scripts run as root and have full access to the filesystem, library mismatches, etc).

I'm all for debs and rpms, but they seem best suited to providing the base system.

[disclaimer: I'm on the Snapcraft team]

Re:Opera launches as a snap for Linux users by rlpb on Thursday August 02, 2018 @11:01AM (#17671967)
> Snaps and flatpaks are just a vector for malware.

That depends entirely on your perspective. If you're happy using packages entirely from your distribution and from no other sources, then sure, carry on as you are.

Snaps (not sure about flatpaks and confinement) are far better than the "curl ...|bash", PPA and other installer type vectors, even from your perspective.

Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @11:04AM (#17671994)
>Snaps (not sure about flatpaks and confinement) are far better than the "curl ...|bash", PPA and other installer type vectors, even from your perspective

A bad thing compared to other bad things does not make the bad thing good. If you're missing a package on your distro, bug a package maintainer to build it, or step up and volunteer.

Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @11:25AM (#17672143)
Yeah, because that's totally how software distribution should work. What's so wrong with the vendor just compiling and distributing an application? Why must this be needlessly complicated?
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @11:32AM (#17672192)
Yes, that is totally how software distribution should work. Vendors cannot be trusted, this has been proven over and over and over again. Having a dispassionate third party do the packaging keeps malware out of your computer. This is why we have browser extensions and android apps that spy on you. This is why we have a snap which was mining cryptocurrency on your computer a few weeks ago. This is why Mozilla can add spyware to Firefox. Vendor publishing is fundamentally broken.
Re:Opera launches as a snap for Linux users by Boulth on Thursday August 02, 2018 @01:50PM (#17673653)
> This is why Mozilla can add spyware to Firefox.

Mozilla has some interesting technical solutions to this problem: https://wiki.mozilla.org/Security/Binary_Transparency

Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @02:31PM (#17674132)
Mozilla is the one adding the spyware, though.

https://blog.mozilla.org/press-uk/2017/10/06/testing-cliqz-i...

>Users who receive a version of Firefox with Cliqz will have their browsing activity sent to Cliqz servers, including the URLs of pages they visit.

Re:Opera launches as a snap for Linux users by Boulth on Thursday August 02, 2018 @03:09PM (#17674524)
And upstream issues such as this one should be fixed in upstream not patched endlessly with every other distro. That's the approach promoted by Arch Linux.
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @04:55PM (#17675393)
My point is that upstream can't always be trusted. With snaps there's no one between you and a potentially bad actor.
Re:Opera launches as a snap for Linux users by Boulth on Friday August 03, 2018 @02:29AM (#17677662)
If you don't trust upstream why are you running their code?

I don't think it's reasonable for such a small group of people as Debian developers (or any other maintainers) to review each change looking for potentially malicious code. Especially in codebases as big as Firefox.

Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @12:56PM (#17673078)
Well, you're free to believe that a platform that places you at the mercy of third party comrades who dictate what you can and cannot install or distribute "for your own good" is a good idea.

I disagree. Wholeheartedly.

Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @01:14PM (#17673302)
We're not talking about some shady organization in some ivory tower. Package maintainers are people whose names and email addresses are available to you. Distros are also always looking for volunteers, you can volunteer and steer things the way you want. And if not, then there are dozens of other distros to choose from whose maintainers may agree with you more.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @01:42PM (#17673589)
Yes, and look at how well all that fragmentation works.

We're clearly of very different opinions about what personal computing is all about.

Re:Opera launches as a snap for Linux users by taway234252 on Thursday August 02, 2018 @02:32PM (#17674141)
Without the "fragmentation" the problem of third parties censoring applications would be even worse and it still wouldn't be any easier to deploy anything. If you want a proprietary centralized service loaded with malware, there are already plenty of those to choose from on other systems, complete with their own gatekeepers.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @04:13PM (#17675066)
Neither MacOS nor Windows prevent you from installing any application you desire[0], direct from the vendor. That has only recently begun to change thanks to app stores, which bear a remarkable similarity to package repos.

[0]Ok, there are some hoops regarding unsigned drivers.

Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @11:24AM (#17672137)
I passionately disagree. Package managers are inflexible conflict causing garbage and repos are appstore-like walled gardens which often contain out of date software, when they have what you're looking for at all.

Snap and Flatpak aren't much better, though. Give me AppImage any day.

Re:Opera launches as a snap for Linux users by binomialxenon on Thursday August 02, 2018 @03:45PM (#17674831)
The repository system on Debian, Arch, Fedora is clearly not a walled garden like Apple or Microsoft's app stores. Any site can host a repository that you can add to your package manager's sources, and you're free to install .deb/.rpm packages from any source you want, not to mention tarballs or compiling from source code. Also, there's no motive for lock-in like mainstream app stores have.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @04:17PM (#17675091)
Only if those sources keep things up to date with the changes in the main repository, and every other repository the user uses, so as to avoid conflicts.

> not to mention tarballs or compiling from source code

Seriously? You may as well say iOS is open because you can root it.

Re:Opera launches as a snap for Linux users by digi_owl on Thursday August 02, 2018 @11:57AM (#17672466)
The reason for the conflicts are rarely if ever at the package layer, and more often than not with upstream changing dependencies on a .x update.

This leaves the distro maintainers two choices: either recompile/restructure the whole distro to placate one upstream, or freeze said upsteam on an older version and suffer their social media wrath.

Re:Opera launches as a snap for Linux users by kyrofa on Thursday August 02, 2018 @12:45PM (#17672949)
Or because it's a new feature release instead of just bugfixes. At least in e.g. Ubuntu, SRUs aren't accepted unless they're security or bug fixes, which makes it impossible to get newer features back to stable releases. Snaps provide a way out of this by removing the ability to break other applications with an update (since there are no dependencies).
Re:Opera launches as a snap for Linux users by stemc43 on Thursday August 02, 2018 @10:44AM (#17671801)
noone is going to prep packages for dozens distros with different distribution mechanism. too complicated|time consuming - why Linux doesn't have first world apps.
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @10:56AM (#17671920)
No one is expecting you to, nor do I trust you to. Distro maintainers do this, not software developers.
Re:Opera launches as a snap for Linux users by ansgri on Thursday August 02, 2018 @11:06AM (#17671998)
How do I get my favorite app included as a user? As a publisher? The maintainer has his own schedule. What if I have a closed-source app? I presume it's just better than PPA and *.deb-s (which would be acceptable if all desktop Linux was based on Ubuntu).
Re:Opera launches as a snap for Linux users by conradk on Thursday August 02, 2018 @11:17AM (#17672093)
There is AppImage (https://appimage.org/). I have no affiliation with it whatsoever, but if you're not going to have a verified Snap account, I think you're better off offering an AppImage from your website. And it seems like some companies are thinking about something like this (https://github.com/itchio/itch/issues/683).

If your Snap account is unverified, there seems to be no way to know who created the snap. It looks like I can create an account with the name of any company and distribute stuff in their name, including malware.

With something like AppImage, your users know that the AppImage is actually coming from you if you host the file on your domain. Then again, AppImage has its own drawbacks. But at least, if Slack put an official AppImage on its homepage, I'd be able to download it. Installing a Slack snap from the account of "Felix Rieseberg" doesn't sound to good to me (https://snapcraft.io/slack). If you dig around, you can see that Felix Rieseberg does work at Slack, but for this big a company, that just looks fishy IMO.

Re:Opera launches as a snap for Linux users by kyrofa on Thursday August 02, 2018 @12:42PM (#17672914)
Verified accounts are pretty new, I suspect we'll see Slack verified soon.
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @11:12AM (#17672048)
You ask. Find a maintainer who works on similar or related software and send them an email. Send them a patch.

Your closed source app can shove it.

Re:Opera launches as a snap for Linux users by JdeBP on Thursday August 02, 2018 @12:10PM (#17672593)
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @12:16PM (#17672637)
You have to be proactive. Contact the maintainers directly, reach out to other maintainers, etc.
Re:Opera launches as a snap for Linux users by JdeBP on Thursday August 02, 2018 @12:24PM (#17672721)
Debian Developer Stephen Kitt said the opposite, as you can see.
Re:Opera launches as a snap for Linux users by stemc43 on Thursday August 02, 2018 @11:20AM (#17672111)
yeah. that's wishy-washy dreamworld. For 20 years Ive been using Linux - noone bothered packaging A-level apps for Linux, definitely not closed source ones. That's been enough of a trial run I would say.
Re:Opera launches as a snap for Linux users by mort96 on Thursday August 02, 2018 @11:33AM (#17672211)
So your argument is that anyone who wants to use any proprietary software should just switch to Windows?

I suppose I should stop using Linux then, because I occasionally play games from Steam.

Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @11:42AM (#17672299)
And your games are spying on you. Many of these games employ invasive anti-cheat systems which shake down your computer and send a bunch of data to their servers. This shit doesn't fly with distro packages.
Re:Opera launches as a snap for Linux users by mort96 on Thursday August 02, 2018 @12:20PM (#17672685)
Yeah, they definitely wouldn't be in distro packages, but I want to play them nonetheless. That means I either have to run software which isn't in my distro repo, or switch to Windows.
Re:Opera launches as a snap for Linux users by JdeBP on Thursday August 02, 2018 @12:25PM (#17672733)
Just don't ask about using WINE. (-:

* https://unix.stackexchange.com/questions/460036/

Re:Opera launches as a snap for Linux users by mynewtb on Thursday August 02, 2018 @02:30PM (#17674122)
You wish! Which distro are you talking about? Can't be Ubuntu for sure...
Re:Opera launches as a snap for Linux users by Sir_Cmpwn on Thursday August 02, 2018 @02:41PM (#17674230)
Ubuntu is an outlier, not a representative of all of Linux. Linux is open source, you can make a distro that does anything you want, including spying on others. This doesn't make the distros that don't any worse.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @11:26AM (#17672152)
This attitude is the reason Linux Desktops suck and will continue to suck.
Re:Opera launches as a snap for Linux users by ansgri on Thursday August 02, 2018 @01:37PM (#17673545)
Actually they don't. I use Linux Mint Cinnamon for 5 years and find it a very convenient operating system, better than Windows (at least 7 — I hear nothing good about Win7 except its Linux support) and OSX (at least Snow Leopard) in almost every respect, except commercial app support. I very reluctantly reboot into Windows for things like Office, Lightroom and CorelDraw. Maybe Visual Studio.

edit: btw, I agree with you on the "attitude" thing. There should be more commercial options on Linux desktop.

Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @01:47PM (#17673624)
It was a subjective assessment to be sure, but one shared by many. You can tell because of how few users it has, though I'm sure someone will pop up and blame the fact that it doesn't come pre-installed on PCs as the reason, without consideration for the concept that if people actually wanted to use it, it might.
Re:Opera launches as a snap for Linux users by sincerely on Thursday August 02, 2018 @03:27PM (#17674691)
eh, i disagree. even if linux distros were objectively better than windows in every possible way (not speaking to the truth of that claim) if computers shipped with windows the vast majority of people would use windows.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @04:07PM (#17675002)
The vast majority of Windows PCs do not ship with Chrome.
Re:Opera launches as a snap for Linux users by zapzupnz on Thursday August 02, 2018 @07:59PM (#17676413)
But the vast majority of internet users do use Google search and other Google products like Gmail. That's how Chrome became popular — because Google will spam you with ads for Chrome at every available opportunity.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @08:50PM (#17676616)
And how did Google get popular despite Microsoft owning the OS? And for that matter, IE? My point is, people tend to use software they like. The reason Linux Desktop, despite decades of evangelism, hasn't taken off is that people don't like it. It's that simple, but the evangelists keep deluding themselves because making it better will require them to do hard things, like work together.
Re:Opera launches as a snap for Linux users by sergiusens on Thursday August 02, 2018 @02:37PM (#17674180)
Wait, some of us are trying to change that.

affiliation: tech lead for the snapcraft tool and linux user since 1999.

Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Thursday August 02, 2018 @08:55PM (#17676633)
To my knowledge, there have been at least 4 other attempts to have sane application distribution on Linux over the years:

Application Bundles (GNUStep), AppDirs (ROX), Flatpak (formerly xdg-app), and AppImage (formerly Klik).

But Canonical invented a fifth anyway. Forgive me if I'm skeptical that change will actually occur this time.

Re:Opera launches as a snap for Linux users by petre on Friday August 03, 2018 @12:44AM (#17677335)
Also Nix and Guix.
Re:Opera launches as a snap for Linux users by AnIdiotOnTheNet on Friday August 03, 2018 @12:47AM (#17677345)
Those are just package managers trying to be less crap than currently existing package managers. Vendors still aren't expected to create and deploy the application directly to the user.

Also, in that category, you forgot Gobo.

Re:Opera launches as a snap for Linux users by xmmrm on Thursday August 02, 2018 @01:45PM (#17673611)
You‘re really complaining about how the Snap Store works. Simple fix: Only maintainers can promote snaps to 'stable'.