Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flameshot not working on Openrc with sway #3697

Open
TahaCoder43 opened this issue Aug 24, 2024 · 0 comments
Open

Flameshot not working on Openrc with sway #3697

TahaCoder43 opened this issue Aug 24, 2024 · 0 comments
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@TahaCoder43
Copy link

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

Alpine Linux v3.2 x86_64

Description

I was following the documentation of installing flameshot on sway, but it still is not working. I noticed that it was based on systemmd, and I think that's the reason it's not working cause I have openrc

Part of my .zprofile

# Flameshot
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export XDG_CONFIG_HOME=/home/$USER/.config

# Running sway
sway

my ~/.config/sway/config (I removed the systemctl line as I am using openrc, also removed the --systemd flag passed to the command)

## For flameshot (more like to speed up GTK applications slowing excessively)
exec hash dbus-update-activation-environment 2>/dev/null && \
     dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK

## Explicitly for flameshot
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0

my ~/.config/xdg-desktop-portal/sway-portals.conf

[preferred]
# use xdg-desktop-portal-gtk for every portal interface
default=gtk
# except for the xdg-desktop-portal-wlr supplied interfaces
org.freedesktop.impl.portal.Screencast=wlr
org.freedesktop.impl.portal.Screenshot=wlr

output of dbus-monitor --session sender=org.freedesktop.portal.Desktop destination=org.freedesktop.portal.Desktop

signal time=1724493617.776653 sender=org.freedesktop.DBus -> destination=:1.28 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.28"
signal time=1724493617.776688 sender=org.freedesktop.DBus -> destination=:1.28 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.28"

Steps to reproduce

  1. Run flameshot and it should show QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*)
  2. Running flameshot gui shows nothing, and it keeps running until I Ctrl+c
  3. flameshot config opens config tho

Screenshots or screen recordings

No response

System Information

I have only one monitor, that is of the laptop itself
Operating system alpine linux version 3.20
window manager is sway, and I am using wayland

@TahaCoder43 TahaCoder43 added the Unconfirmed Bug The bug is not confirmed by anyone else. label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

1 participant