chimera icon indicating copy to clipboard operation
chimera copied to clipboard

Ability to add custom actions

Open maddox opened this issue 1 year ago • 4 comments

I'm curious if the ability of adding user scripts that are available to run from the web frontend, under Actions, is of any interest, or something that's been discussed in the past and the maintainers are vehemently against.

Why

It would be helpful to add our own scripts that we can run by just visiting the web app.

What kind of scripts?

  • maintenance script
  • restarting a custom service
  • anything you usually SSH in to do

How would they get added?

I was thinking they could be added the same way steam entries are added. Users can just write YAML files.

Concerns

Obviously, exposing scripts that run on the system could be very dangerous. But I like to think technology should treat people like adults, so it's on them.

maddox avatar Apr 16 '23 14:04 maddox

Oh, that is a cool idea.

alkazar avatar Apr 16 '23 15:04 alkazar

One note is that the chimera service runs in the user session and thus does not have root access.

Would this still be useful in that case?

alkazar avatar Apr 16 '23 19:04 alkazar

I think this sounds like a great limitation to avoid anything bad.

One of my use cases is starting/stopping Sunshine, which runs as a user service, so I know that my use cases would be ok.

But again, only being able to do things in userspace sounds more safe anyways.

maddox avatar Apr 16 '23 20:04 maddox

One note is that the chimera service runs in the user session and thus does not have root access.

Would this still be useful in that case?

I think it would, especially for people are just using the chimera web front end like me (i have an NVIDIA based PC running on a TV that ChimeraOS/Gamescope/Wayland doesn't play nicely with, so i have vanilla arch and just run a full-screen Steamdeck UI over the top of KDE Wayland with Chimera to manage some/all of the installations

This is the only desktop system oriented web front-end i can find (most front-ends have servers in mind) - its nice to manage my bedroom media system from the front end so when I'm ready to game i can lie down in bed and game

i would like to add an action that allows me to shutdown steam, run chimera -update and -tweaks also i have a few other things installed in user-space that would be great to automate with a command trigger in the actions menu

Da-Boom avatar Jul 04 '23 11:07 Da-Boom