-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't assign any keys to shortcuts #1215
Comments
Thanks for reporting with thorough logs! This is probably caused by GNOME Shell locking down external access to its DBus interface. There's probably not a good way to work around this, other than to export another DBus interface from the Shell extension and restrict access to the |
Thanks for replying! Can I provide any other useful information? I am not a programmer though, so my knowledge here is limited. |
Nope, your report describes the problem perfectly! This is just new change in GNOME Shell that will have to be worked around. |
Sorry to be that person, but any progress on this? Also, for what it's worth, i'd set up the shortcuts on my previous laptop, probably around Fedora 32, and the shortcuts were working fine update after update, up to Fedora 35. On this new laptop's fresh install of F35, shortcuts can't be set up, as described in this issue. So it seems that if one could set up the right config, somewhere in GNOME, it could still work. |
There's been no progress. GSConnect is effectively a community-driven project now, so this will probably rely on someone coming forward to contribute a fix. |
I think if we know the command associated with these operations we can easily create our own shortcuts, is there a way to get the commands which are associated with these operations? |
Not really without peeking through the source code. The available actions are just all the
to const available = true; I make no guarantees you won't shoot yourself in the foot, though. |
Thanks a lot for the pointer, disabling that check in But weirdly, disabling the check i was able to set clipboard push / paste and clipboard pull / copy shortcuts up, but only the paste one works. 🤔 |
Great thanks, the workaround in keybindings.js works well for me. You only need it in place to set the keys - you can use existing keys without needing the workaround. |
Gradually more and more users will be running on GNOME versions where this bug exists - so the keyboard shortcuts are confusingly not useable. Please would you at least consider a workaround something like this? Check if the GNOME shell version is >= the one where this problem was introduced. If so, disable the check for keys already existing. |
GSConnect is a community-driven project now, so if you want something changed or added you need open a pull request with those changes. The maintainers are really only here to act as custodians for the project. |
Sure I understand. Do you think it's a good idea, would you accept such a pull request? |
It's possible to overwrite other keyboard shortcuts if you skip the check. So I would say there should probably just be a label added to the keyboard editor warning about that. Ideally the whole verification would be rewritten, but they're just keyboard shortcuts 🤷♂️. So I'd accept a PR that disabled the check, as long as there's a little label somewhere letting the user know. |
Great thanks. I don't have Gnome dev knowledge myself, however hopefully someone else might step in - it should be a much simpler fix than the "ideal" one. |
Pinning this, as it keeps getting re-reported. |
Hello, for the time being, is there any way at all to push the computer clipboard to the phone? |
You can either enable auto-push in settings, or use the |
Hi @andyholmes, do you know if it is possible to run that GAction somehow, straight from command-line or script? We could use external other hotkey apps to push/pull from clipboard. I did a quick Google search and couldn't find anything obvious. I personally don't like to enable full clipboard sync between laptop and phone, and would like to share it on demand using a shortcut, a button or any manual means. Thanks! |
💡 Simple Workaround below: Just update the settings in dconf. Sorry, forgot the above message, I realized that it's much simpler to change the line you pointed here to temporary disable it, assign the shortcut, and revert. For anyone interested, it's also possible to do it without changing the code, if not wrong, the only you need to do is to use Something like this will work for the clipboard push and pull ( You will find this registry under the following key (or can use the search to look for
Neither to say that this is a workaround. I suppose that adding a user warning tag on the window as @andyholmes suggested would be easy for someone that knows Gnome development. Just check the version, bypass the check if necessary and warn the user with a small text. |
It doesn't look like clipboard push/pull were ever added to the CLI options, but I'd accept a PR for that if someone's interested. |
Hi @andyholmes, is it possible or easy to add the "Pull clipboard" and "Push clipboard" buttons/options in the menu? It would be at least a neat way to deal with clipboard without relaying on shortcuts. I found strange that those buttons are not already present, maybe there's a reason. Thanks! |
Sure, issue #1167 has been looking for a volunteer for a while 🙂 There are a few hints to get someone started on it, I'm sure that code hasn't changed much since then. |
I tried to add it for myself the other day before seeing the #1167 but I couldn't understand how it works (I have no experience in Gnome extensions development). But I'm wondering if Gnome Shell 45 that will introduce/enforce ESM for extensions will break everything and what will be the cost to adapt it. I recently discovered this extension and I found it terrible useful - wouldn't like it became abandoned. I think Gnome 45 is gonna be rolled out soon for many distros, including Ubuntu. Here is he issue for any one interested: #1665 |
GNOME Shell will indeed require all extensions to port to ESModules. Whether GSConnect is/will be abandoned is up to the community, as it has been a community-driven project for the last three years 🤷 |
How deep and complex is to port it to ESM? I'm not JS dev 😅. I have the impression that Gnome plugin system is very fragile as it breaks frequently. Isn't it? Thanks anyway!! |
There's a porting guide, if you want to give a shot: Port Extensions to GNOME Shell 45 |
Any idea on how to use this to set a shortcut for remote input? I tried to use this solution but it doesn't work for this. |
This works for now (I think this is the best workaround), but can't seem to pull the clipboard |
I've just checked, and it still works for me. Do you mean that clipboard pull fails, but push works? For me, it works on both directions. |
Describe the bug
When I try to assign a shortcut key to any actions (i.e. Clipboard pull) the app says "key combination here is already being used." and selected keys don't get assigned.
Steps To Reproduce:
Expected behavior
I expected the application to assign a key combination for an action.
Screenshots
Support Log
Please generate a support log (Instructions) and paste any messages related to this issue between the two ``` lines below.
System Details (please complete the following information):
GSConnect environment (if applicable):
Additional Notes:
I made sure that the key combination I tried wasn't used by anything else. In addition to that, I tried something bizzare like Ctrl+Shift+Super+Alt+C and it still complained about it being used. I saw similar issue reported back in 2019 and it was supposedly fixed here de44f41
The text was updated successfully, but these errors were encountered: