Comments (17)
Hm... What if I provide a DBus API instead of CLI? This will separate the work with the CLI and GUI and allow to manage the program from third-party tools.
Also you will able to bind dbus commands as shortcuts too.
from crow-translate.
I think that Gnome and KDE provide an API for this. I will try to figure out how to register hotkeys for them.
I think it will be more correct :)
from crow-translate.
@Shatur95, there is a difficult way through gsettings. I think it's better to wait for a better implementation and leave it manual for now
from crow-translate.
Done, check the documentation. But I'm no sure that Wayland supports global selection...
from crow-translate.
@Shatur95, there is an different mechanism in Wayland, see this.
from crow-translate.
@Shatur95
But I'm no sure that Wayland supports global selection...
I've checked it, all works fine
from crow-translate.
You can just execute crow
to open the program main window.
from crow-translate.
@Shatur95, I can not.
crow
does not intercept a current PRIMARY selection and opens "The application is already running" window
from crow-translate.
Sorry, I misunderstood you. In the application itself, hotkeys do not work on Wayland?
from crow-translate.
Hotkeys (on any qt applications) don't work if focused window runs on wayland.
Inside crow - work
from crow-translate.
I found the same issue: albertlauncher/albert#309
from crow-translate.
Unfortunately, this is because I use the QHotkey library, which does not work for Wayland :(
I do not like the proposed solution. I would like to be able to somehow register hotkeys for Wayland...
from crow-translate.
I would like to be able to somehow register hotkeys for Wayland...
It seems impossible now: Skycoder42/QHotkey#14 (comment)
from crow-translate.
@Shatur95, no problem, do as you see fit
from crow-translate.
Is there a way to somehow let Gnome know about available shortcuts instead of adding it manually?
For example, to show the shortcuts in KDE settings i just need to add a few lines to .desktop file.
from crow-translate.
I've checked it, all works fine
Good news, thank you.
from crow-translate.
I made some changes to the D-Bus methods names in commit 2ea3f09. You can get the latest method names from readme.
from crow-translate.
Related Issues (20)
- Add Croatian translation HOT 4
- Combined Google Translate with Yandex
- schortcut doesn't work HOT 21
- small size font HOT 3
- Crow Translate is not working in Pop-up Window Translation mode HOT 8
- Add a translate history feature HOT 1
- Tray icon as ... (three dots) on Gnome Wayland. HOT 6
- Above all windows mode HOT 1
- Long delay in translation HOT 5
- Wrong Russian menu translate HOT 6
- Please make a "dark mode" option HOT 2
- Wrong basque flag HOT 1
- i can't get voice at all when i try to make it speak the word HOT 3
- text speaking not work with me HOT 4
- Flathub Verification HOT 8
- qdbus not found with Ctrl+Alt+e shortcut HOT 4
- Fix tab order in the main window
- Translate selected text does not work under Wayland (Fedora 40 KDE) HOT 7
- Bug Report - Ballon helep width too small HOT 4
- Shortcut keys to translate selected text must be pressed multiple times before they appear HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crow-translate.