SeaDve / Kooha

Elegantly record your screen
GNU General Public License v3.0
2.63k stars 70 forks source link

Unable to capture my screen on ubuntu 22.04 #245

Closed OmidEsmailbeig closed 9 months ago

OmidEsmailbeig commented 1 year ago

System Info

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

Raxelgrande commented 1 year ago

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.

OmidEsmailbeig commented 1 year ago

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.

SeaDve commented 9 months ago

Closing as duplicate of https://github.com/SeaDve/Kooha/issues/129.