Closed ghost closed 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.
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
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!
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.
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
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.
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.
Ok. Let me close. It seem not an error.
Hi, I can't run flameshot
Flameshot info