mijorus / smile

An emoji picker for linux, with custom tags support and localization. I'll also put some random emojis here 🦁🐾🦔🦇
https://mijorus.it/projects/smile
GNU General Public License v3.0
235 stars 13 forks source link

Clipboard is not working if "Run in the background" is off #36

Closed arielnmz closed 3 months ago

arielnmz commented 1 year ago

To reproduce:

$ flatpak info it.mijorus.smile

Smile - An emoji picker

          ID: it.mijorus.smile
         Ref: app/it.mijorus.smile/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 2.0.9
     License: GPL-3.0-or-later
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 16.2 MB
     Runtime: org.gnome.Platform/x86_64/43
         Sdk: org.gnome.Sdk/x86_64/43

      Commit: 0703c1374c16f1a314d5d1cbcb9254cda0a1b2c38eebcf46cafb6173ac6a5a2f
      Parent: d4802662a5c0c672c5647d138ab791abce393e2569f54563629d60f45c3f86bb
     Subject: Update it.mijorus.smile.json (c3d93d5e)
        Date: 2023-02-12 18:20:00 +0000

$ cat /etc/fedora-release
Fedora release 35 (Thirty Five)

$ sudo dnf info xorg-x11-server-Xorg
Last metadata expiration check: 3:35:57 ago on Tue 21 Feb 2023 12:05:35 PM PST.
Installed Packages
Name         : xorg-x11-server-Xorg
Version      : 1.20.14
Release      : 9.fc35
Architecture : x86_64
Size         : 3.7 M
Source       : xorg-x11-server-1.20.14-9.fc35.src.rpm
Repository   : @System
From repo    : updates
Summary      : Xorg X server
URL          : http://www.x.org
License      : MIT
Description  : X.org X11 is an open source implementation of the X Window System.  It
             : provides the basic low level functionality which full fledged
             : graphical user interfaces (GUIs) such as GNOME and KDE are designed
             : upon.
mijorus commented 1 year ago

Hi @arielnmz

could you please test if this build fixes your issue?

flatpak kill it.mijorus.smile
flatpak install --user https://dl.flathub.org/build-repo/7456/it.mijorus.smile.flatpakref
arielnmz commented 1 year ago

@mijorus It didn't

mijorus commented 1 year ago

I'm sorry but I can't replicate it. I'm trying my best on all the machines I can find but it runs just fine on my fedora VM

arielnmz commented 1 year ago

Any ideas on how I can test on my side? maybe generate some debug logging?

mijorus commented 1 year ago

it's some sort of issue with GTK and its clipboard manager, it happened to me and other users in the past, but it was supposed to be fixed now.

Basically the process quits before the clipboard receives the new content, I have no idea how to debug an issue like this.

In the meanwhile, please just make sure that you are NOT using apps like Flatstat to manage or alter permissions

arielnmz commented 1 year ago

Gotcha. I can confirm that I'm not using any application to alter permissions externally or otherwise.

Can you give me any pointers into the part of the code that passes the data to the clipboard?

mijorus commented 1 year ago

Please check out this commit: https://github.com/mijorus/smile/commit/c931a956a8909debc1bffe2486ed199c8e90c839

mijorus commented 3 months ago

version 2.9.3 will be using wl-clipboard as backend, which should (finally) fix this issue once for all

mijorus commented 3 months ago

Also, closes #76

mijorus commented 3 months ago

Thanks for contributing with this bug report.

If you want to support my work, please consider a small donation.

https://ko-fi.com/mijorus