easyeffects icon indicating copy to clipboard operation
easyeffects copied to clipboard

CLI option "--bypass (-b)" stopped working

Open ulville opened this issue 1 month ago • 2 comments

EasyEffects Version

8.0.0

What package are you using?

Flatpak (Flathub)

Distribution

Fedora 43

Describe the bug

Hi! I'm the dev of the Gnome Shell Extension. After investigating this issue I realised that --bypass {} -b {} cli options does not work as intended on EasyEffects version 8.0.0. Instead of changing or printing the global bypass state it simply opens the EasyEffects window.

Expected Behavior

No response

Debug Log

Debug Log
Paste your log here

Additional Information

No response

ulville avatar Nov 12 '25 22:11 ulville

Now I see I totally forgot to bring this back. I've updated our master branch with the bypass command line. As in the past setting it to 1 enables the bypass and setting to 2 disables it. But for now there isn't a way to get the current value like it was possible to do with the 3 value.

The interaction of third party tools with our database now we do not use gsettings has to be done in a totally different. The ideal way is to connect to our local server. We have a function in place to get some plugins values https://github.com/wwmm/easyeffects/blob/cc7d5b26d3bf02b9e2b6cd9ba35822fff33b9867/src/local_server.cpp#L201 but there is nothing for the bypass property yet.

Maybe for you is enough just setting the value. In this case the command line option for the bypass is enough. But if you need to get the bypass value and talking to our QT local server based on https://doc.qt.io/qt-6/qlocalserver.html is viable let me know. Adding one more function to the local server that allows the keys like the bypass to be read should not be a big problem.

wwmm avatar Nov 13 '25 01:11 wwmm

Thanks for the quick fix for 1 and 2 options 🙏 To display the correct bypass state as a toggle switch I'll need to read the current bypass value. I can probably use the local server method but unfortunetaly until now, I had little to no idea how to connect to and get or set values through such socket server from a GJS GNOME Extension. Probably using Gio.SocketClient but I still need to do more reading and testing on the subject

ulville avatar Nov 13 '25 21:11 ulville