jtheoof / swappy

A Wayland native snapshot editing tool, inspired by Snappy on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Failed to register: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gtk.Actions” on object at path /me/jtheoof/swappy

AkechiShiro opened this issue · comments

I've started using swappy on Sway (Wayland I3WM's equivalent).

I use it like so :

takeScreenshot() {
  FILE=$1
  GEOM=$2
  OUTPUT=$3
  if [ -n "$OUTPUT" ]; then
    grim ${CURSOR:+-c} -o "$OUTPUT" "$FILE" || die "Unable to invoke grim"
  elif [ -z "$GEOM" ]; then
    grim ${CURSOR:+-c} "$FILE" || die "Unable to invoke grim"
  else
    grim ${CURSOR:+-c} -g "$GEOM" "$FILE" || die "Unable to invoke grim"
  fi
}
takeScreenshot - "$GEOM" "$OUTPUT" | swappy -f - || die "Clipboard error"

However recently due to an upgrade, I'm not sure if it's of xdg-desktop-portal or anything else.

When I take a screenshot, swappy does not show up unless I manually run into a terminal swappy, wait for like 1 min at most, and then see the dialog of the previous screenshot open and in the terminal I see the following error :

Failed to register: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.gtk.Actions” on object at path /me/jtheoof/swappy 

Any idea on how to fix this issue ? Or any debug logs I could provide here so that you could have a better idea of what's going on ?

This is fixed by uninstalling : xdg-desktop-portal-gnome, I saw the solution mentioned in JezerM/sea-greeter#3 (comment)