Open franglais125 opened 7 years ago
While I think this is a better user experience (for anyone installing dash-to-dock with ubuntu-dock already present), there is still one problem. Renaming the shortcuts implies having a different set of keys in the schema, and I don't know if you want to handle a separate compiled file, as you are already linking to the d-t-d one.
Yeah, it seems adding a lot of complexity and maintainance cost for a small corner case. We explicitely wanted to keep the same keys so that advanced users can tweak their ubuntu dock settings via dash to dock one. I guess we can see how this issue is popular (and as you stated, it's only until the person restart the session after enabling d-t-d).
dockManager._keyboardShortcuts._hotKeysEnabled = false;
The issue with this is that it's called after dash to dock was initizialized, so I doubt it will fix the issue. Otherwise, we need to give ubuntu dock a way to trigger in dash to dock shortcut reinitialization, when we are in that else if
case, wdyt?
@didrocks I moved the issue over here not to take over the other one. After all I'm not sure it's related.
As you probably found out:
This doesn't happen upon relogin, as ubuntu-dock doesn't get activated (with d-t-d installed).
I tested the name change for the shortcuts, and it works. There is a different warning, but at least it doesn't fail setting up the new shortcuts. Here is a sample output:
While I think this is a better user experience (for anyone installing dash-to-dock with ubuntu-dock already present), there is still one problem. Renaming the shortcuts implies having a different set of keys in the schema, and I don't know if you want to handle a separate compiled file, as you are already linking to the d-t-d one.
The other thing we could do is avoid deactivating the hotkeys from the conditional enablement in
extension.js
.Something like (untested):
Anyhow, just letting you know what my little investigation led me to!
PS: Just repeating the fact that this is only a problem right after the installation, and not that big an issue overall.