flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.95k stars 1.6k forks source link

Flameshot is not working on Fedora OS 40 and 41. #3770

Open IgaoWolf opened 5 days ago

IgaoWolf commented 5 days ago

Flameshot Version

Não está funcionando o flameshot no SO Fedora 40 e 41

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...), User repository (AUR), Flatpak from Flathub, Flatpak from Github, Snap from Snapcraft, Snap from, AppImage, Using the ready-made package from Github Releases, Compiled from source

Operating System type and version

Fedora 40 e 41

Description

Workaround to Run Flameshot on Fedora 40 and Fedora 41

Follow these steps to install and set up Flameshot with a custom shortcut in Fedora 40 and Fedora 41.

  1. Download Flameshot AppImage:

  2. Set Up Flameshot Directory:

    • Open your terminal and create a dedicated directory for Flameshot:
      sudo mkdir --parents ~/Applications/Flameshot
  3. Move the AppImage to the Directory:

    • Copy the downloaded AppImage to the newly created directory:
      sudo cp /home/<PASTA>/Downloads/Flameshot-12.1.0.x86_64.AppImage ~/Applications/Flameshot
  4. Make the AppImage Executable:

    • Grant execute permissions to the AppImage file:
      sudo chmod +x ~/Applications/Flameshot/Flameshot-*.x86_64.AppImage
  5. Create a Script for GUI Launching:

    • Open a new file named flameshot_gui.sh in the Applications directory to create a launch script:
      sudo vim ~/Applications/flameshot_gui.sh
    • Add the following content to the script file:
      #!/bin/bash
      /home/<PASTA>/Applications/Flameshot/Flameshot-*.x86_64.AppImage gui
    • Save and exit, then make the script executable:
      sudo chmod +x ~/Applications/flameshot_gui.sh
  6. Adjust Keyboard Shortcut Settings:

    • Go to Settings > Keyboard > View and Customize Shortcuts > Screenshots.
    • Disable all options except for Screen Recorder.
  7. Create a Custom Shortcut for Flameshot:

    • In Settings > Keyboard > View and Customize Shortcuts > Custom Shortcuts:
      • Create a new entry:
      • Name: Flameshot GUI
      • Command: /home/<PASTA>/Applications/flameshot_gui.sh
      • Set the shortcut to fn + Insert, and ensure PRINT is shown as the active key for the shortcut.

After completing these steps, pressing PRINT (or fn + Insert) should launch Flameshot, providing the desired screenshot functionality on Fedora 40 and 41.

Steps to reproduce

No response

Screenshots or screen recordings

No response

System Information

Igor-Wolf:~$ cat /etc/os-release NAME="Fedora Linux" VERSION="41 (Workstation Edition)" RELEASE_TYPE=stable ID=fedora VERSION_ID=41 VERSION_CODENAME="" PLATFORM_ID="platform:f41" PRETTY_NAME="Fedora Linux 41 (Workstation Edition)" ANSI_COLOR="0;38;2;60;110;180" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:41" DEFAULT_HOSTNAME="fedora" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f41/system-administrators-guide/" SUPPORT_URL="https://ask.fedoraproject.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=41 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=41 SUPPORT_END=2025-05-13 VARIANT="Workstation Edition" VARIANT_ID=workstation

Igor-Wolf:~$ gnome-shell --version GNOME Shell 47.1

mmahmoudian commented 1 day ago

I don't believe your issue is Fedora related, and I believe it is Gnome Wayland. But because you didn't provide enough information in the "System Information" section, I cannot be sure. Please edit your original post and update that for transparency.

I also think that Flatpak would achieve the same results as AppImage. Have you considered trying that?

Also, I wonder if this is a vug report or suggestion for documentation. Because you filled the bug report form, but I don't see much of the bug report details.

IgaoWolf commented 1 day ago

We have identified a recurring issue when attempting to use the tool via Flatpak, as, despite multiple attempts, it was not possible to make it work properly. The only solution we found was to use the AppImage version, which worked as expected. In light of this, I am updating the operating system information in this ticket. This incident qualifies as a root bug, preventing the correct use of the tool.

As a temporary measure, I have implemented a workaround that allows usage on both Fedora 40 and Fedora 41. It is worth noting that all team members using these Fedora versions are encountering the same issue. Any updates or a definitive solution would be greatly appreciated to mitigate this situation for everyone.