• 𝕸𝖔𝖘𝖘@infosec.pub
    link
    fedilink
    English
    arrow-up
    3
    ·
    25 days ago

    I’ve found out the hard way: Running the script during startup, and running it using the proper user authorization, are two different things.

      • bleistift2@sopuli.xyzOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        25 days ago

        You’re right and I’m dumb. I forgot to absolute-ify one of the paths, which caused the script to be dependent on my user environment, which isn’t loaded by the desktop file.

  • RoyaltyInTraining@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    25 days ago

    Weird that it doesn’t work. The usual way to run scripts on startup is through systemd units though. That has the added benefits of automatically logging all output and letting you control it through commands like systemctl enable <unit name>. It’s a really neat system, and I highly recommend learning it if you see yourself doing this kind of automation more often.