Giter Site home page Giter Site logo

Comments (4)

AlanGriffiths avatar AlanGriffiths commented on May 20, 2024

@mattkae

            for (auto const& terminal : POSSIBLE_TERMINALS)
            {
                if (external_client_launcher.launch({terminal}) > 0)
                    break;
            }

Doesn't do what you think. external_client_launcher.launch() does a fork()/exec() and returns the pid of the forked process. The fork() will always succeed, even if the exec() doesn't.

The approach I took with Miriway was to allow the user to configure the terminal command (and provide a fallback to a script that tries to identify an installed terminal).

from miracle-wm.

mattkae avatar mattkae commented on May 20, 2024

Doesn't do what you think. external_client_launcher.launch() does a fork()/exec() and returns the pid of the forked process. The fork() will always succeed, even if the exec() doesn't.

Oh that's unfortunate

The approach I took with Miriway was to allow the user to configure the terminal command (and provide a fallback to a script that tries to identify an installed terminal).

I think that I will follow this same approach

from miracle-wm.

mattkae avatar mattkae commented on May 20, 2024

Hi agan @OPNA2608 👋 Would you give this PR try when you get a chance: #40

It should work in both a snap and non-snap context. You should be able to install the AMD snap from this page: https://github.com/mattkae/miracle-wm/actions/runs/8038897957?pr=40. I'll add the fix to a release/0.1.1 later this week if all is good.

Thanks for finding the bug!

from miracle-wm.

mattkae avatar mattkae commented on May 20, 2024

Also, I am testing out #39 now. I will cherry-pick it into release/0.1.1 alongside the terminal fix once approved 👍

from miracle-wm.

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.