Giter VIP home page Giter VIP logo

Comments (2)

principis avatar principis commented on September 26, 2024 1

#879 only fixes the case when you're trying to run howdy-gtk yourself on X11. For security reasons, pkexec only runs the program in a minimal environment. Setting org.freedesktop.policykit.exec.allow_gui to true does retain the $DISPLAY and $XAUTHORITY variables such that howdy-gtk can connect to the display server. On Wayland this doesn't work as it doesn't allow other users access to the wayland socket. It's possible to "hack" around it with the root user by setting WAYLAND_DISPLAY to the full path of the socket and setting XDG_RUNTIME_DIR to some value (or just pass both those vars). But these variables aren't passed by pkexec (I think), so it's not possible to implement this hack.

The issue here is a bit different. The compare.py script is spawned by the pam module with an empty environment (source). It would be possible to pass $DISPLAY and $XAUTHORITY without issue as these are kept. This won't work on Wayland however as the $WAYLAND_DISPLAY and $XDG_RUNTIME_DIR are not kept by the sudoers plugin. (Yes you can configure it, but you really shouldn't)

In the ideal case someone figures out how to run the howdy-gtk popup properly under the current user when invoked by PAM.

My current laptop does not have IR camera's so I'm not really interested in working on this (and no time as usual). I do want to keep maintaining my copr repos, so feel free to mention me if changes are needed. I really hope this project will someday reach a point where I can include it in Fedora.

from howdy.

LightTreasure avatar LightTreasure commented on September 26, 2024

@principis Thanks so much for the detailed response! I think I'm going to keep this issue open in hopes of someone fixing it in the future. Meanwhile I think I'll continue to use howdy without the rubberstamp.

from howdy.

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.