flathub / org.flameshot.Flameshot

https://flathub.org/apps/details/org.flameshot.Flameshot
3 stars 4 forks source link

Error: None of the authentication protocols specified are supported #17

Closed ghost closed 1 year ago

ghost commented 2 years ago

Hi, I can't run flameshot

flatpak run org.flameshot.Flameshot 
Gtk-Message: 00:37:35.699: Failed to load module "canberra-gtk-module"
Gtk-Message: 00:37:35.699: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported

Flameshot info

LC_ALL=C flatpak info org.flameshot.Flameshot 

Flameshot - Powerful and simple to use screenshot software

          ID: org.flameshot.Flameshot
         Ref: app/org.flameshot.Flameshot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 12.1.0
     License: GPL-3.0-or-later
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 3.6?MB
     Runtime: org.kde.Platform/x86_64/5.15-21.08
         Sdk: org.kde.Sdk/x86_64/5.15-21.08

      Commit: 8cc7b03ef77af28f019e5698531d5e43208169573055c92566f5c8ff1781670a
      Parent: 93370f9f0ff80f38bf9359229f6a78cfb2abadd46c44c0071f48600050c7c9fd
     Subject: Update v12.0.0.tar.gz to 12.1.0 (16e972b7)
        Date: 2022-07-04 12:13:16 +0000
rcalixte commented 1 year ago

@sabriunal Have you tried with additional subcommands? Running it the way you did there, I get the app in my tray (subtle, I know). Launching via the CLI, I get the same exceptions you do but they don't appear to prevent the app from running.

Examples:

flatpak run org.flameshot.Flameshot --help
flatpak run org.flameshot.Flameshot gui
flatpak run org.flameshot.Flameshot launcher
flatpak run org.flameshot.Flameshot config

You should have a .desktop file at /var/lib/flatpak/exports/share/applications/org.flameshot.Flameshot.desktop that you can use to launch it as well.

ghost commented 1 year ago

I have an icon on my shell and have no effect but others work.

desktop file have this command.

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/flameshot org.flameshot.Flameshot

I added gui to the end and started to work from desktop file. We may need update Flameshot.desktop

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/flameshot org.flameshot.Flameshot gui
rcalixte commented 1 year ago

I normally use the context menu and make use of the Desktop Actions available. It may be intentional to keep it minimized in the tray, I'm not sure. I'm glad it's working for you though!

rcalixte commented 1 year ago

This is the view from my launcher. Once launched, it stays in the tray and can be activated by a single click. You can also map key bindings directly to the subcommands as well.

flameshot-taskbar

azzamsa commented 1 year ago

Same here;

~ took 8s
❯ flatpak run org.flameshot.Flameshot gui
Gtk-Message: 21:20:41.328: Failed to load module "canberra-gtk-module"
Gtk-Message: 21:20:41.329: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
❯ flatpak --version
Flatpak 1.14.1

~ 
❯ flatpak list    
Name                                      Application ID                                          Version          Branch          Origin     Installation
CopyQ                                     com.github.hluk.copyq                                   6.4.0            stable          flathub    system
Fedora Linux 37 (Container Image) x86_64 
Arcitec commented 1 year ago

Can confirm: The default action of Flameshot's ".desktop" file is to start running silently in the background. Right-clicking the Desktop shortcut in GNOME Applications will bring up the other actions such as "Configure" and "Take Screenshot".

This behavior comes from Flameshot upstream's own desktop file, so we shouldn't change it just for the Flatpak.

Just educate people more about having to run flatpak run org.flameshot.Flameshot gui (which should be manually put by the user in custom OS keybindings, such as in GNOME Settings: Keyboard).

Oh and after starting via flameshot gui once, the Flatpak version of Flameshot stays resident in the background. So there's no need to worry about making "start at login/autostart" shortcuts.

rcalixte commented 1 year ago

One more addendum here. Depending on your machine setup or desktop environment's ability to display notifications from Flatpak applications, the default launcher for Flameshot does include a notification when it launches straight to the tray.

2023-05-31_23-08-25

ghost commented 1 year ago

Ok. Let me close. It seem not an error.