59 points

I’ll admit I have zero insight and haven’t looked into this, but at first glance, I don’t understand why a desktop environment theme engine is unable to provide enough functionality for theme creators to do their thing without resorting to arbitrary command execution…

I trust KDE devs to address this quickly, but this is a pretty major oversight IMO…

permalink
report
reply
44 points
*

“Global Themes” in Plasma do more than just styling

To developers it’s not a surprise that third party plugins can do this sort of thing. It’s as intended. A global theme can ship custom lockscreens, custom applets, custom settings and all of these can run arbitrary bundled code. You can’t constrain this without limiting functionality.

https://blog.davidedmundson.co.uk/blog/kde-store-content/

Naturally this is not what an end user expects when browsing for themes, and the warnings don’t make up for the risks.

I hope devs can find a better way to ship this rich functionality, or at least introduce an automated “canary-release” process to the KDE Store that takes down themes that misbehave.

permalink
report
parent
reply
28 points

This sounds very amateurish from Plasmas part as allowing themes to run bash scripts sounds like a very bad idea no matter how you look at it.

Themes should probably have something like their own domain specific language (DSL) that can be fed to the “theme engine”(?) which will make the requested changes. If additional functionality is needed it should be provided through separate modules/plugins or something.

permalink
report
parent
reply
2 points

My thoughts were sandboxing, so run it in a container with only predefined hooks out. That way you know what parts of the system a theme is wanting to change or access (think flatpak).

I do like the use of subset languages to reduce attack surfaces (eBPF comes to mind as an example definitely not a solution to here those lol).

permalink
report
parent
reply
18 points

Original report, in English:

https://old.reddit.com/r/kde/comments/1bixmbx/do_not_install_global_themes_some_wipe_out_all/

It’s possible that this deletion was a shell script mistake rather than malice, but it really shouldn’t be allowed either way. It’s made even worse by the UI that encourages users to install themes that that could have been made by anyone, with practically no oversight, and with no warning that they can execute arbitrary code.

I like KDE for a lot of reasons, but I’m ashamed of them for this irresponsible blunder.

Let’s hope they respond by closing this hole and any others like it. If they have to break compatibility with existing themes, now seems like a good time for it, since Plasma 6 was only just released.

permalink
report
parent
reply
3 points

Uk this prolly is an unpopular opinion, but KDE just isn’t as stable as it should be. When I used KDE (even when my friend used it) something or the other ALWAYS broke. Like just like that! The wifi icon bar or whatever disappeared. Why? Cuz it wanted to… Uggh it just feels like using alpha software, uk…

permalink
report
parent
reply
58 points

If Lemmy has taught me anything this is a Linux user’s dream because now they can install Linux on the machine.

permalink
report
reply
37 points
*

NixOS users be like : meh, just rolling back

permalink
report
reply
15 points
*

I keep seeing comments about NixOS. As a relative newby just messing around for themselves, is there anything stopping me from/I should know about taking the plunge?

I’ve only dipped my toe in Ubuntu.

permalink
report
parent
reply

As someone who’s using it daily:

It’s pretty cool. But it’s not a “best” solution. It, like anything, has upsides and downsides.

So let me quickly summarize NixOS for you:

you will have to learn new how to configure your system. You can’t go into your Settings App anymore (well, you still can, but then you could just stay on Ubuntu, that’s the whole Point of NixOS) but instead you’ll have a file in /etc/nixos/configuration.nix everything System goes into that Config File. Then you can also use home-manager to customize your user. i.e. you want to use a special ssh setting. Home-Manager is (in my opinion) only useful if you have multiple Computers and sync your Config Files between them (in my case via Git) as any change made on one Computer will be synced to the other.

so you have a lot more effort upfront. You have to relearn how to do stuff and you have to use a complicated File instead of a simple GUI.

BUT:

Once you did that effort, it is done. forever. You can just copy that Config file anywhere and you’re back on the exactly same system. Have two Computers and want to sync them? NixOS is the absolute best Option for that imo.

Spinning up a lot of Servers/VMs that you want to be pre-configured and ready for use? NixOS. Servers you always want the same way? NixOS. you can also already declare public keys you use for SSH Authentications.

so, you see, NixOS isn’t for everyone. It certainly is for me, but if you only ever use one Computer and prefer GUIs, stay away.

permalink
report
parent
reply
7 points

This is a really good explanation! Thanks.

permalink
report
parent
reply
5 points

And it shares a name with a Bad Dragon toy!

permalink
report
parent
reply
5 points

How is this any different than skeletons and using up ansible, salt or chef? Also hear a lot about Nix but don’t see the OS of NixOS

permalink
report
parent
reply
5 points

I keep wanting to dabble with nixOS as it almost seems like the docker compose of OS’s

But every now and then someone comments and acts like it’s really hard or something.

I so scared

permalink
report
parent
reply
7 points

If you can wrap your head around docker compose, you can handle nix.

That is to say, I’d sounds like you aren’t afraid of tinkering and looking at other people’s solutions until you get your setup right. That’s what NixOS is all about.

Solve that problem once, you’ve solved it forever. You don’t need to remember how you did it next time.

permalink
report
parent
reply
2 points

I daily drive it on 2 machines. Overall, it is super simple, if you know how to ready json or yml, you will understand the config file instantly. However, it is a unique OS, and works different than most other distros. As a result, any guide made for other Linux distros needs to be thrown out the window. It also doesn’t natively support most self executing packages like app image. All that said, it is fun and easy, just make sure when you look for support, you are looking for NixOS support.

permalink
report
parent
reply
3 points

nixos is like the hyper power user OS i think. Think of it like unixporn, if you like spending hundreds of hours perfecting your rice, you will love nixos (probably) if not, and you dont really care (like me) go use debian or arch or something else instead.

permalink
report
parent
reply
3 points
*

Neon explained it better than I ever could! I hope their answer satisfies you

permalink
report
parent
reply
1 point

It did! Thank you for sparking the conversation.

permalink
report
parent
reply
10 points

But the script only deleted files in /home

permalink
report
parent
reply
9 points

Imagine not having a backup of your files 😳

permalink
report
parent
reply
3 points

I don’t actually. All stuff I care about is on code hosting platforms

permalink
report
parent
reply
29 points

That whole feature needs a reboot, to be more like wallpaper engine.

permalink
report
reply
8 points

I know this story is more-so about a trojan in a trusted place, and not general security, but I have an anecdote to share.

So, time to fess up here. I previously complained about Google trapping me in captcha-hell for enabling Ublock Origin.

I was wrong.

Turns out that I had visited a movie streaming site a while before to watch a season of some show, I forget which. Without any downloads or noticeable input on my part. My Linux box apparently got hacked/malware. All I did was click the occasional “I am a human” box on the website, and sit back with popcorn.

I found out when my ISP starting blocking IP addresses some time later. I checked my modem’s logs, and they showed some unexplained traffic to impossible “unassigned” IP addresses afterward. I didn’t notice for a while.

I was stupid. Even worse, my phone also started behaving badly after that. I think I watched the last few episodes in bed, so must have infected that too.

Don’t assume any system is automatically safe.

permalink
report
reply
3 points

I really doubt anything escaped the browser, but websites can make nefarious connections, sure.

permalink
report
parent
reply
1 point

I hope so. It’s more likely something infected Firefox itself, and didn’t get into the OS. But when I checked the modem logs, it happened up to a couple of months after the fact. That’s worrying.

What’s even more worrying is that a couple of websites told me I had an IP address that didn’t match my home IP, but would provide the correct one if I refreshed the page a couple of times. So some kind of covert proxy or VPN type of thing was happening.

I ended up just wiping everything, to be safe. Still a bit paranoid though.

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 17K

    Monthly active users

  • 12K

    Posts

  • 543K

    Comments