Replies: 3 comments 3 replies
-
|
Hello @braikar Does it also work for Xubuntu 24.04? |
Beta Was this translation helpful? Give feedback.
-
|
Dear @braikar, |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for this writeup, @braikar. I managed to come half-way already, until the javascriptcoregtk-4.0 issue. And as much as I'd like to support new programs - a working, apparently still maintained fork of easystrokes which immediately solves my current issues is too good an opportunity to pass. At least as long as I'm still on X11. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm just sharing this as help for people who might want it on ubuntu 24.04 or linux-mint 22.
First of all! Thanks!! I used to have easystroke too, it's now deprecated (I just stuck with it much longer on a very outdated linuxmint...), I found your app and it seems that it is perfect as a replacement!
The amd64.deb (4.5.0) you just published is not ready for the dependencies of ubuntu 24.04/linux-mint 22.
But the app works, it just needs to be built manually (until there is, maybe a proper release.. But it doesn't seem to be the best time now to do it, tauri-v2 is still in beta and rust 1.8 might break small things soon it seems!).
(Btw. looking for replacements, I also ended-up on https://github.com/dkondor/wstroke which is very promising, just a port of easystroke, but using wayfire ("new" compiz) on wayland, so the edges handling are not required, because it's managed by wayfire. But I tried it, full on wayland, full on wayfire, is too unstable IMO for the moment! On my setups, it's blank screens almost everywhere... I'm sticking to x11 for the moment)
GUI-Less version (works as-is):
Follow the instructions here: https://github.com/jersou/mouse-actions?tab=readme-ov-file#install--run
cargo build --releaseThe only think I had to find out it that there is a utility to create debian packages form cargo projects, so after the cargo build, use
cargo-deb(That would be cool in the readme for debian specific help, not everyone might know that there is cargo-deb... I searched in the wrong direction for a while before figuring out there's this little handy tool!)https://github.com/kornelski/cargo-deb
That's it, you'll have the gui-less package (after searching for all the dependencies missing..)
The package will be in
target/debian/mouse-actions_0.4.5-1_amd64.debWith-GUI version (needs some changes):
Follow the instructions here again: https://github.com/jersou/mouse-actions?tab=readme-ov-file#install--run
cd config-editor && npm i && npm run tauri-buildInstall all the dependencies that are needed and missing again with the help of the various error messages.
Then you will run into the unresolvable error (you can resolve all other ones by installing the right dependencies):
The system libraryjavascriptcoregtk-4.0required by cratejavascriptcore-rs-syswas not found.Don't look for that dependency, it won't work...
This is caused by tauri-1, apparently unresolvable in ubuntu 24.04/mint 22, you need to migrate the app to tauri 2.0..
https://v2.tauri.app/start/migrate/from-tauri-2-beta/
Just run the migration as explained.
In the process, you should have rust > v1.8 installed by now.
Then change in 'config_editor.rs':
"tauri::WindowBuilder::new(app, "main", tauri::WindowUrl::App("index.html".into()))"
to:
"tauri::WebviewWindowBuilder::new(app, "main", tauri::WebviewUrl::App("index.html".into()))"
(Naming changes for the switch from tauri 1 to 2: https://docs.rs/tauri/2.0.0-beta.16/tauri/webview/struct.WebviewWindowBuilder.html)
Then (dending on the migration you have used?) you might get the error:
failed to build bundler settings: failed to get updater configuration: plugins > updater doesn't existWhich is a brand new issue (as I write this text): tauri-apps/tauri#10508
That has a fix that was merged in https://github.com/tauri-apps/tauri/compare/fix/v1-migration and should soon get into main?
But basically, to fix this issue, while not resolved in the migration tool (if by the time you read that, it's resolved, great!).
Else remove the key:
"createUpdaterArtifacts": "v1Compatible"from tauri.conf.json
The conf file should look like this:
Then you might get other errors (from missing dev libs):
run the build with
npm run tauri build -- --verboseto see the errors in detail and install the missing dependenciesOnce all dependencies are installed, the build should end in success :)
And you'll have your package in
config-editor/src-tauri/target/release/bundle/deb/mouse-actions-gui_0.4.5_amd64.debOne last note: I opened a blank window for the GUI... somehow, on my version, I need to run the gui with:
WEBKIT_DISABLE_COMPOSITING_MODE=1 mouse_actions_config_editor
Else, I already started configuring some of my favorite gestures, it works perfectly! Thanks
Beta Was this translation helpful? Give feedback.
All reactions