question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fact to detect GUIs

See original GitHub issue

Is your feature request related to a problem? Please describe.

Sometimes I deploy GUI-based packages, e.g. meld, gufw to GUI-based machines. However, on occasion I will test on non-GUI servers, where installing these GUI packages isn’t needed. I would like to skip them.

There seem to be ways to detect whether a GUI is installed (on Linux). With this, a user can skip installing certain operations.

Describe the solution you’d like

A fact to automate GUI detection.

if host.fact.has_gui():
    apt.packages(
        name="Install gui-based packages.",
        packages=[
            "gufw",
            "meld",
            ...
        ]
    )

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Fizzadarcommented, Oct 21, 2020

Chosen the more explicit route looking for exact binaries - more painful to maintain but should be rock solid; https://github.com/Fizzadar/pyinfra/commit/057c90a9985ce16e9e0e7e42de2f37dffb761969! 1.2 coming up v.shortly!

0reactions
bronte2k7commented, Oct 11, 2020

Check installed packages. But it is safer

Read more comments on GitHub >

github_iconTop Results From Across the Web

Things You Should Know About Graphical User Interface
The GUI is what most modern computers use. It is an interface that uses graphics, images, and other visual cues such as icons....
Read more >
How to detect gui collision? PLEASE HELP - Scripting Support
Hey there! I was wondering how I could easily detect gui collision. I have been working on a pretty small gui game recently....
Read more >
How to check for facts, bias, and fake news
START HERE: Sites you can use to check facts and media bias ... The Fact Checker's guide for detecting fake news. Clear and...
Read more >
What is a Graphical User Interface (GUI)? - Study.com
A Graphical User Interface (GUI) allows users to interact with electronic devices through graphical icons instead of text.
Read more >
Graphical User Interfaces: Crash Course Computer Science #26
It was the first mainstream computer to use a GUI, standing on the shoulder of ... Want to find Crash Course elsewhere on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found