Skip to content

Mouse Context Menu does not show on Linux #524

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

Closed
mitras2 opened this issue May 3, 2019 · 3 comments
Closed

Mouse Context Menu does not show on Linux #524

mitras2 opened this issue May 3, 2019 · 3 comments

Comments

@mitras2
Copy link

mitras2 commented May 3, 2019

The mouse right-click context menu in CEFPython does not show up on my Linux machine any more (which makes it impossible to debug the Web-Frontend).

I have the sneaking suspicion that it might have occured since the time I last updated my system (to GNOME 3.32.1)

My system specs are:

  • Python 3.7.3
  • CEFPython 66.0
  • Manjaro Linux x64
  • GTK 3.24.8-1, GNOME 3.32.1 (Wayland)

The code I use to start CEFPython is basically:

def init_gui():
    sys.excepthook = cef.ExceptHook  # To shutdown all CEF processes on error
    settings = {
        "context_menu": {
            "enabled": True,
            "devtools": True
        }
    }
    cef.Initialize(settings=settings)
    browser = cef.CreateBrowserSync(url=f'file:///{get_html_file_path()}', window_title="KnowLink")
    # browser = cef.CreateBrowserSync(url="localhost:8080", window_title="KnowLink")
    set_javascript_bindings(browser)
    cef.MessageLoop()
    cef.Shutdown()

I tried it with and without the custom settings. There is just no context menu showing up (and the shortcuts F12 or Ctrl + Shift + i do not work either to bring up the devtools.

The only message I get in the console when starting the application is:

DevTools listening on ws://127.0.0.1:64409/devtools/browser/d24cd661-e092-4724-8bcc-3ebb7ebb584a
[0503/121003.809836:ERROR:sandbox_linux.cc(379)] InitializeSandbox() called with multiple threads in process gpu-process.

Could this issue be caused by an update or is there maybe some sort of configuration(-file) for CEFPython that cloud have been changed or deleted accidentally?

@cztomczak
Copy link
Owner

Does it work in hello_world.py example? Does it work in other examples? (wxpython.py, qt.py). You can show Developer Tools popup programmatically by calling Browser.ShowDevTools.

@cztomczak
Copy link
Owner

Wayland is currently not supported, see Issue #523.

@mitras2 mitras2 changed the title Mouse Context Menu dows not show on Linux Mouse Context Menu does not show on Linux May 3, 2019
@mitras2
Copy link
Author

mitras2 commented May 3, 2019

I did use wayland before the update and the context menu did show as intended.
Probably something about GTK/Wayland has changed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants