Code Monkey home page Code Monkey logo

Comments (2)

jpmens avatar jpmens commented on August 16, 2024

Why are you running the launcher as root? I'm not familiar with the utilities you're using, but I'd think it unlikely that xdg-open would function when run out of the context of systemd, because it knows nothing about your display. Similarly, for the crontab experiment: this utility doesn't know about your graphical display.

If it's X11, you might get around by setting the DISPLAY environment variable and xset + on the display itself, but it's probably some new-fangled technology I'm not aware of.

That's about all I can do for you, unfortunately.

from mqtt-launcher.

taylormia avatar taylormia commented on August 16, 2024

Thanks for the feedback.
I realized I was making this too complicated. I got the launcher to start on user login by adding a shell script with the following:
#!/bin/bash
/usr/bin/python /home/user/mqtt-launcher.py & &>/dev/null

to Autostart in the KDE Plasma 5 System Settings - and now I can get the URL to be opened when the topic/payload is received - since the xdg-open utility runs as the user and not root.

Thanks for the launcher script. It does exactly what I need !!

from mqtt-launcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.