this post was submitted on 03 May 2024
4 points (61.1% liked)

Programming

17362 readers
194 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

Many commertial apps have options to run apps at logins... Is there any cross-platform way to do so in python or other languages?

you are viewing a single comment's thread
view the rest of the comments
[–] Miaou@jlai.lu 2 points 6 months ago* (last edited 6 months ago)

Extremely trivial? Init stuff probably shouldn't be touched by random user app, systemd cannot always be assumed, login shell can probably do this but syntax will vary by shell, and the only other I can think of is WM dépendent (although I assume the big ones will agree on using desktop files, i3 for example does not, and location might vary there too).

It's not difficult but to handle this generically requires some work to handle various scenarios.