Giter Club home page Giter Club logo

Comments (9)

jersou avatar jersou commented on August 15, 2024 1

Hi, I have just released the v0.4.2 that had "Wayland detection" (check if the "WAYLAND_DISPLAY" env var exists).

The "--no-listen" option is no longer necessary with Wayland.
Furthermore, the bug "the GUI doesn't fowrward the --no-listen argument" is also fixed (the bug described by @pallaswept).

@bournedrewd can you check the v0.4.2 ?

from mouse-actions.

jersou avatar jersou commented on August 15, 2024 1

I'm reopening this ticket, and I understand why this happens: currently, this field must always be a valid json, which is why it prevents intermediate entries.
it's obviously not a good idea, and I need to change this behavior.

In the TODO section of the README, there is use https://crates.io/crates/deno_task_shell to execute commands ?, I'll see if it's not the right time to do it...
With this library, we would no longer need to write an array of strings, just a single string.

from mouse-actions.

pallaswept avatar pallaswept commented on August 15, 2024

I mentioned this experience over in #3, the problem is that when the GUI exits and starts the daemon, the --no-listen argument isn't used, so you get the usual error when running without it. You can deal with it by manually starting the daemon with the --no-listen argument, it'll use the config you successfully created in the GUI and work just fine.

The plan for the future is to automatically detect the wayland session and configure the app accordingly so the need for the argument will go away and it'll work just fine. Either @jersou or myself will definitely take care of it one day, but until then now you have a workaround I hope that will help.

from mouse-actions.

pallaswept avatar pallaswept commented on August 15, 2024

Hi, I have just released the v0.4.2 that had "Wayland detection" (check if the "WAYLAND_DISPLAY" env var exists).

The "--no-listen" option is no longer necessary with Wayland. Furthermore, the bug "the GUI doesn't fowrward the --no-listen argument" is also fixed (the bug described by @pallaswept).

@bournedrewd can you check the v0.4.2 ?

Working very well here, thanks for that!

from mouse-actions.

kitsugo avatar kitsugo commented on August 15, 2024

Hi, I have just released the v0.4.2 that had "Wayland detection" (check if the "WAYLAND_DISPLAY" env var exists).

The "--no-listen" option is no longer necessary with Wayland. Furthermore, the bug "the GUI doesn't fowrward the --no-listen argument" is also fixed (the bug described by @pallaswept).

@bournedrewd can you check the v0.4.2 ?

The --no-listen was not really the issue for me, but I can confirm that mouse-actions now correctly picks it up on wayland.

It seems like my issue (the IoError) has nothing to do directly with mouse-actions but more so the command I input. I was able to run commands in my PATH just fine, however, any direct shell scripting seems to trigger the IoError for me.
I.e.:
sh <command>
echo 'test' >> /tmp/test
bash -c <command>
all throw the error I originally described.

from mouse-actions.

pallaswept avatar pallaswept commented on August 15, 2024

bash -c <command> all throw the error I originally described.

This is literally the only thing I do with mouse-actions thus far (to call ydotool and send keystrokes). It's picky about the formatting, though. I gave an example over here hopefully it will be helpful?

A screengrab to show what I mean
image

from mouse-actions.

kitsugo avatar kitsugo commented on August 15, 2024

bash -c <command> all throw the error I originally described.

This is literally the only thing I do with mouse-actions thus far (to call ydotool and send keystrokes). It's picky about the formatting, though. I gave an example over here hopefully it will be helpful?

A screengrab to show what I mean image

It seems like I was not able to actually add new elements to the JSON array within the GUI as the input field simply wouldn't allow to add any " or add a , after the first element.
Manually editing the conf file with an external editor, however, did fix the issue and I can successfully execute any command this way. Thank you!

I suppose that solves this particular issue.

from mouse-actions.

pallaswept avatar pallaswept commented on August 15, 2024

It seems like I was not able to actually add new elements to the JSON array within the GUI as the input field simply wouldn't allow to add any " or add a , after the first element.

I came across this, too. Sometimes it lets me type them and sometimes it doesn't, I'm not exactly sure of the exact conditions here it works and doesn't. Frankly I reached the point where I would generate the string, formatting and all, in a text editor or a shell prompt or anywhere else I could type, then cut-and-paste it into the GUI - that is, when I was using the GUI. I've been using this since even before it was very first released and the GUI has and used to have other issues that made me usually only utilise it to draw the gesture and I did the rest in the config file in a text editor. It's early days for this app, but you can be confident that these little bumps will be ironed out in time.

from mouse-actions.

jersou avatar jersou commented on August 15, 2024

ok, this last bug is a duplicate of #7, I close the current and move my comment to #7

from mouse-actions.

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.