SeaDve / Kooha

Elegantly record your screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to capture my screen on ubuntu 22.04

OmidEsmailbeig opened this issue · comments

System Info

  • io.github.seadve.Kooha 2.2.3

  • Flatpak: true

  • Experimental: false

  • Distribution: GNOME 43 (Flatpak runtime)

  • Desktop Session: ubuntu

  • Display Server: x11

  • GTK 4.8.3

  • Libadwaita 1.2.4

  • GStreamer 1.20.6

  • Pipewire 0.3.69

Describe the bug
I cannot record my screen, the detailed log is pasted in application context section.

To Reproduce
Steps to reproduce the behavior:

  1. Open Kooha
  2. Click on Record
  3. See error

Additional context
Failed to start recording

Caused by:
0: Check out It Doesn't Work page for help.
1: Failed to create ScreencastSession
2: Failed to create session
3: Failed to call CreateSession with parameters: Variant { ptr: 0x55f5a5c96f80, type: VariantTy { inner: "(a{sv})" }, value: "({'handle_token': <'kooha_3'>, 'session_handle_token': <'kooha_2'>},)" }
4: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast” on object at path /org/freedesktop/portal/desktop

Unfortunately, this was done quietly without asking for maintainers. But Kooha's main developer is giving Kooha minimal maintenance, mainly to focus on his other app, Mousai.
This is why you see multiple bug reports on all sorts of distros with mayor errors.
Edit: You can read it yourself in this link from Gnome's Circle Gitlab. https://gitlab.gnome.org/Teams/Circle/-/issues/174

Until you get help, my advice is that you use OBS for Wayland recording or use one of the X11 screen recorders (simplescreenrecorder and kazam are the best).
If OBS doesn't work, it's likely your Ubuntu has some trouble related to "xdg-desktop-portal" because that's the error Kooha gives, I'm not a developer, so it's just a guess.

Thank you for your quick response. Actually I fixed it with uninstalling 'obs-studio' using apt and installed again using snap. It seems the obs-studio package from snap has something different. I did a series of steps and I'm not sure if this is the exact fix in my case. I just wanted to share it and see if anybody else can fix this with this solution.

Closing as duplicate of #129.