The only way to do this is to open flameshot and type ‘flameshot gui’ into terminal. Other than that are not available, since the system was updated yesterday.
Have you tried editing the flamshot.desktop file, usually found in /usr/share/applications and changing the line that reads
Exec=flamshot
to read
Exec='flamshot gui'
cscs
10 October 2023 12:23
3
notabug
man flameshot
Per default without subcommands, flameshot runs the Flameshot in the background and adds a tray icon for configuration. Note that it will not take a screenshot unless you
define one of the modes though the subcommands. There are various subcommands that can be used to use flameshot in different modes:
gui Running Flameshot in gui mode would let the user to select the region from which the screenshot should be taken and then allow them to annotate the screenshot.
full Takes screenshot of all monitors at the same time
screen Takes screenshot of the specified monitor.
launcher
Does not accept any arguments, it will just opens the launcher window
config
If no argument is provided, it will open the config window, otherwise it can change the configurations based on the provided arguments.
Keep the default and make no changes
Exec=/usr/bin/flameshot
Someone has reported the issue on GitHub
opened 06:03AM - 07 Oct 23 UTC
Unconfirmed Bug
### Flameshot Version
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.10
##… # Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
### Operating System type and version
Arch with kernel 6.5.4-273-tkg-bore
### Description
When using a shortcut (Print screen) to run Flameshot I get "Unable to capture screen".
When I run the command from the shortcut in a terminal, it works.
Now both used to work fine before, but stopped working after my daily updates sometime this week. The normal Gnome screenshot program still works.
If you can tell me where I should look for further logs, please do, so I can upload them.
### Steps to reproduce
In Arch running Gnome:
1. Bind screenshot a region key to printscreen and set it to `/usr/bin/flameshot gui`
2. Use key to trigger flameshot
3. Get Unable to capture screen error
### Screenshots or screen recordings

(Shortcut settings)
### System Information
```
System:
Host: tuxgamer Kernel: 6.5.4-273-tkg-bore arch: x86_64 bits: 64
Desktop: GNOME v: 44.5 Distro: Arch Linux
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
driver: amdgpu v: kernel
Device-2: Logitech Brio 500 driver: hid-generic,usbhid,uvcvideo type: USB
Device-3: Chicony USB2.0 FHD UVC WebCam driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
compositor: gnome-shell driver: X: loaded: modesetting dri: radeonsi
gpu: amdgpu resolution: 5120x1440~60Hz
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
renderer: AMD Radeon RX 6700 XT (navi22 LLVM 16.0.6 DRM 3.54
6.5.4-273-tkg-bore)
```
1 Like
, Thanks that’s the only workaround that did actually work for me:
opened 06:03AM - 07 Oct 23 UTC
Unconfirmed Bug
### Flameshot Version
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.10
##… # Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
### Operating System type and version
Arch with kernel 6.5.4-273-tkg-bore
### Description
When using a shortcut (Print screen) to run Flameshot I get "Unable to capture screen".
When I run the command from the shortcut in a terminal, it works.
Now both used to work fine before, but stopped working after my daily updates sometime this week. The normal Gnome screenshot program still works.
If you can tell me where I should look for further logs, please do, so I can upload them.
### Steps to reproduce
In Arch running Gnome:
1. Bind screenshot a region key to printscreen and set it to `/usr/bin/flameshot gui`
2. Use key to trigger flameshot
3. Get Unable to capture screen error
### Screenshots or screen recordings

(Shortcut settings)
### System Information
```
System:
Host: tuxgamer Kernel: 6.5.4-273-tkg-bore arch: x86_64 bits: 64
Desktop: GNOME v: 44.5 Distro: Arch Linux
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
driver: amdgpu v: kernel
Device-2: Logitech Brio 500 driver: hid-generic,usbhid,uvcvideo type: USB
Device-3: Chicony USB2.0 FHD UVC WebCam driver: uvcvideo type: USB
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
compositor: gnome-shell driver: X: loaded: modesetting dri: radeonsi
gpu: amdgpu resolution: 5120x1440~60Hz
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,wayland,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 23.2.1-arch1.2
renderer: AMD Radeon RX 6700 XT (navi22 LLVM 16.0.6 DRM 3.54
6.5.4-273-tkg-bore)
```
Settings
Keyboard
View and Customize Shortcuts
Custom Shortcuts
Add Custom Shortcut:
a. Name: Flameshot (or whatever you want)
b. shift
+ Print Screen
Keys (or whatever you want)
c. Command: script --command "flameshot gui" /dev/null
And voila, you’re all set!
2 Likes
Thank you for the solution! It worked for me too.
system
Closed
11 November 2024 07:01
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.