Flameshot and Birdtray crashes when set to Autostart

I use Flameshot for taking screenshots and Birdtray for minimizing my Thunderbird window as I have to keep Thunderbird running all the time.

Fedora KDE 41 is installed on both my office and personal workstations. On my office workstation, both of the apps start normally when they are set to Autostart. However, they don’t do so on my personal computer - both of them crash and I have to start the apps via the desktop icon or by typing the app name on KRunner.

I am clueless about debugging this specific issue. Here are the logs I printed using the command sudo journalctl.

Nov 30 00:24:45 fedora systemd[2180]: Listening on ssh-agent.socket - OpenSSH key agent.
Nov 30 00:24:45 fedora systemd[2180]: Starting app-at\x2dspi\x2ddbus\x2dbus@autostart.service - AT-SPI D-Bus Bus...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-com.cloudflare.WarpTaskbar@autostart.service - Cloudflare Zero Trust...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-com.ulduzsoft.Birdtray@autostart.service - Birdtray...
Nov 30 00:24:45 fedora wireplumber[2214]: [0:00:24.817235430] [2214]  INFO Camera camera_manager.cpp:325 libcamera v0.3.2
Nov 30 00:24:45 fedora systemd[2180]: Starting app-geoclue\x2ddemo\x2dagent@autostart.service - Geoclue Demo agent...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-gnome\x2dkeyring\x2dpkcs11@autostart.service - Certificate and Key Storage...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-gnome\x2dkeyring\x2dsecrets@autostart.service - Secret Storage Service...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-gnome\x2dkeyring\x2dssh@autostart.service - SSH Key Agent...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-imsettings\x2dstart@autostart.service - Input Method starter...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-liveinst\x2dsetup@autostart.service - Liveinst Setup...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-orca\x2dautostart@autostart.service - Orca Screen Reader...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.flameshot.Flameshot@autostart.service - Flameshot...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.freedesktop.problems.applet@autostart.service - Problem Reporting...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.gnome.SettingsDaemon.DiskUtilityNotify@autostart.service - gnome-disk-utility notification plugin for GNOME Settings Daemon...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.discover.notifier@autostart.service - Discover...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.kdeconnect.daemon@autostart.service - KDE Connect...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.kunifiedpush\x2ddistributor@autostart.service - UnifiedPush Distributor...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.plasma\x2dfallback\x2dsession\x2drestore@autostart.service - Plasma Session Restore...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.xwaylandvideobridge@autostart.service - Xwayland Video Bridge...
Nov 30 00:24:45 fedora imsettings-daemon[2524]: imsettings_server_bus_method_call: sender[:1.22] path[/com/redhat/imsettings] iface[com.redhat.imsettings] method[GetVersion]
Nov 30 00:24:45 fedora imsettings-daemon[2524]: imsettings_server_bus_method_call: sender[:1.22] path[/com/redhat/imsettings] iface[com.redhat.imsettings] method[IsSupportedDesktop]
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.kde.yakuake@autostart.service - Yakuake...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-org.telegram.desktop@autostart.service - Telegram Desktop...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-sealertauto@autostart.service - SELinux Troubleshooter...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-solaar@autostart.service - Solaar...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-spice\x2dvdagent@autostart.service - Spice vdagent...
Nov 30 00:24:45 fedora imsettings-daemon[2524]: [        45.232999]: IMSettings-Daemon[2524]: WARNING **: Child process exited with code 1
Nov 30 00:24:45 fedora systemd[2180]: Starting app-vboxclient@autostart.service - vboxclient...
Nov 30 00:24:45 fedora imsettings-daemon[2524]: imsettings_server_bus_method_call: sender[:1.22] path[/com/redhat/imsettings] iface[com.redhat.imsettings] method[DumpModuleSettings]
Nov 30 00:24:45 fedora imsettings-daemon[2524]: imsettings_server_bus_method_call: sender[:1.22] path[/com/redhat/imsettings] iface[com.redhat.imsettings] method[CanXDisplayOpen]
Nov 30 00:24:45 fedora imsettings-daemon[2524]: [        45.234427]: IMSettings-Daemon[2524]: WARNING **: Unable to open X Display. Input Method may not work.
Nov 30 00:24:45 fedora systemd[2180]: Starting app-vmware\x2duser@autostart.service - VMware User Agent...
Nov 30 00:24:45 fedora systemd[2180]: Starting app-xdg\x2duser\x2ddirs@autostart.service - User folders update...
Nov 30 00:24:45 fedora imsettings-daemon[2524]: imsettings_server_bus_method_call: sender[:1.22] path[/com/redhat/imsettings] iface[com.redhat.imsettings] method[StopService]
Nov 30 00:24:45 fedora imsettings-daemon[2524]: Exiting...
Nov 30 00:24:45 fedora imsettings-daemon[2524]: [        45.240169]: libnotify[2524]: DEBUG: SNAP app: (null)
Nov 30 00:24:45 fedora systemd[2180]: Starting app-xdg\x2duser\x2ddirs\x2dkde@autostart.service - User folders update...
Nov 30 00:24:45 fedora systemd[2180]: Starting plasma-kglobalaccel.service - KDE Global Shortcuts Server...
Nov 30 00:24:45 fedora systemd[2180]: Starting plasma-kwin_wayland.service - KDE Window Manager...
Nov 30 00:24:45 fedora systemd[2180]: Started spice-vdagent.service - Spice guest session agent.
Nov 30 00:24:45 fedora vmware-user-suid-wrapper[2767]: vmware-user: could not open /proc/fs/vmblock/dev
Nov 30 00:24:45 fedora systemd[2180]: Starting kde-baloo.service - Baloo File Indexer Daemon...
Nov 30 00:24:45 fedora flameshot[2727]: Failed to create wl_display (No such file or directory)
Nov 30 00:24:45 fedora systemd[2180]: Started app-org.flameshot.Flameshot@autostart.service - Flameshot.
Nov 30 00:24:45 fedora systemd[2180]: Started app-vmware\x2duser@autostart.service - VMware User Agent.
Nov 30 00:24:45 fedora abrt-applet[2729]: Failed to rename ‘/home/ablonewolf/.abrt/spool’ to ‘/home/ablonewolf/.cache/abrt/spool’: No such file or directory
Nov 30 00:24:45 fedora abrt-applet[2729]: Failed to rename ‘/home/ablonewolf/.abrt/settings’ to ‘/home/ablonewolf/.config/abrt/settings’: No such file or directory
Nov 30 00:24:45 fedora spice-vdagent[2775]: spice-vdagent[2775]: vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0 does not exist, exiting
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.265Z  INFO ThreadId(01) warp_taskbar::linux: App started
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.267Z  INFO ThreadId(01) warp_net::ipc: Connected to ipc socket name="cloudflare-warp/warp_service" path="/run/cloudflare-warp/warp_service"
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z DEBUG ThreadId(01) warp_ipc::client: Initialized IPC Client
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z DEBUG ThreadId(01) warp_ipc::client: Setting updates callback
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z DEBUG ThreadId(01) warp_ipc::client: Setting status callback
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(01) warp_taskbar::ipc: GetAppSettings
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(01) warp_taskbar::ipc: GetDaemonStatus
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: status=Success fn_name="GetAppSettings"
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: operation_mode=Warp
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: onboarding=true
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: switch_locked=false
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: organization_locked=false
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(01) warp_taskbar::ipc: GetOrganization
Nov 30 00:24:45 fedora warp-taskbar[2712]: 2024-11-29T18:24:45.268Z  INFO ThreadId(02) warp_taskbar::ipc: Received status status=Disconnected(Manual)

I don’t know why my system is having trouble auto-starting these two apps.

Can you give us the differences between the two machines?
Thanks

My office workstation is a Lenovo Thinkpad, and my personal computer is an HP Victus. My office workstation does not have dedicated GPU, but my personal computer has one - NVIDIA GeForce 1650 4gb. Could this be the reason?

I don’t see any significant difference between the two machines.

There is a noticeable difference.

Are you using the proprietary nvidia driver from rpmfusion?

If so it is possible that the nvidia gpu driver may not be loaded by the time the system tries to auto-start those apps and that may cause the issue.

Please post the output from using the command inxi -Fzxx on both systems and tell us which listing is from which machine.

I am not using the proprietary NVIDIA driver; I am using the open-source kernel module by NVIDIA, which works pretty well for me.
Here is the output of the command that you suggested on the machine where I am facing the problem. I will the share the output of the other machine tomorrow.

12System:
  12Kernel 6.11.10-300.fc41.x86_64 12arch x86_64 12bits 64 12compiler gcc 12v 2.43.1-2.fc41
  12Desktop KDE Plasma 12v 6.2.4 12tk Qt 12v N/A 12wm kwin_wayland 12dm SDDM 12Distro Fedora Linux 41 (KDE
    Plasma)
12Machine:
  12Type Laptop 12System HP 12product Victus by HP Laptop 16-d0xxx 12v N/A 12serial <superuser required>
    12Chassis 12type 10 12serial <superuser required>
  12Mobo HP 12model 88FA 12v 88.58 12serial <superuser required> 12part-nu 4D8K8PA#UUF 12UEFI AMI 12v F.25
    12date 10/04/2023
12Battery:
  12ID-1 BAT0 12charge 65.7 Wh (100.0%) 12condition 65.7/70.1 Wh (93.8%) 12volts 17.0 12min 15.4
    12model HP Primary 12serial <filter> 12status full
12CPU:
  12Info 6-core 12model 11th Gen Intel Core i5-11260H 12bits 64 12type MT MCP 12arch Tiger Lake 12rev 1 12cache
    12L1 480 KiB 12L2 7.5 MiB 12L3 12 MiB
  12Speed (MHz) 12avg 973 12min/max 800/4400 12cores 121 973 122 973 123 973 124 973 125 973 126 973 127 973 128 973
    129 973 1210 973 1211 973 1212 973 12bogomips 62668
  12Flags avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
12Graphics:
  12Device-1 Intel TigerLake-H GT1 [UHD Graphics] 12vendor Hewlett-Packard 12driver i915 12v kernel
    12arch Gen-12.1 12ports 12active eDP-1 12empty DP-1 12bus-ID 0000:00:02.0 12chip-ID 8086:9a68
  12Device-2 NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] 12vendor Hewlett-Packard 12driver nouveau
    12v kernel 12arch Turing 12ports 12active HDMI-A-1 12empty none 12bus-ID 0000:01:00.0 12chip-ID 10de:1f9d
  12Device-3 Chicony HP Wide Vision HD Camera 12driver uvcvideo 12type USB 12rev 2.0 12speed 480 Mb/s
    12lanes 1 12bus-ID 3-6:2 12chip-ID 04f2:b735
  12Display wayland 12server Xwayland 12v 24.1.4 12compositor kwin_wayland 12driver N/A 12d-rect 3840x1080
    12display-ID 0
  12Monitor-1 HDMI-A-1 12pos right 12res 1920x1080 12size N/A
  12Monitor-2 eDP-1 12pos primary,left 12res 1920x1080 12size N/A
  12API EGL 12v 1.5 12platforms 12device 0 12drv iris 12device 1 12drv nouveau 12device 2 12drv swrast 12gbm 12drv iris
    12surfaceless 12drv iris 12wayland 12drv nouveau 12x11 12drv nouveau
  12API OpenGL 12v 4.6 12compat-v 4.3 12vendor mesa 12v 24.2.7 12glx-v 1.4 12direct-render yes 12renderer NV167
    12device-ID 10de:1f9d 12display-ID :0.0
  12API Vulkan 12v 1.3.296 12surfaces xcb,xlib,wayland 12device 0 12type discrete-gpu 12driver N/A
    12device-ID 10de:1f9d 12device 1 12type integrated-gpu 12driver N/A 12device-ID 8086:9a68 12device 2 12type cpu
    12driver N/A 12device-ID 10005:0000
12Audio:
  12Device-1 Intel Tiger Lake-H HD Audio 12vendor Hewlett-Packard 12driver sof-audio-pci-intel-tgl
    12bus-ID 0000:00:1f.3 12chip-ID 8086:43c8
  12Device-2 NVIDIA 12vendor Hewlett-Packard 12driver snd_hda_intel 12v kernel 12bus-ID 0000:01:00.1
    12chip-ID 10de:10fa
  12API ALSA 12v k6.11.10-300.fc41.x86_64 12status kernel-api
  12Server-1 PipeWire 12v 1.2.7 12status active 12with 121 pipewire-pulse 12status active 122 wireplumber
    12status active 123 pipewire-alsa 12type plugin 124 pw-jack 12type plugin
12Network:
  12Device-1 Intel Tiger Lake PCH CNVi WiFi 12driver iwlwifi 12v kernel 12bus-ID 0000:00:14.3
    12chip-ID 8086:43f0
  12IF wlo1 12state up 12mac <filter>
  12Device-2 Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet 12vendor Hewlett-Packard
    12driver r8169 12v kernel 12port 3000 12bus-ID 0000:02:00.0 12chip-ID 10ec:8168
  12IF eno1 12state down 12mac <filter>
  12IF-ID-1 br-bc1b07fac31b 12state up 12speed 10000 Mbps 12duplex unknown 12mac <filter>
  12IF-ID-2 CloudflareWARP 12state unknown 12speed 10000 Mbps 12duplex full 12mac N/A
  12IF-ID-3 docker0 12state down 12mac <filter>
  12IF-ID-4 veth173bd4b 12state up 12speed 10000 Mbps 12duplex full 12mac <filter>
  12IF-ID-5 veth47bbb5d 12state up 12speed 10000 Mbps 12duplex full 12mac <filter>
12Bluetooth:
  12Device-1 Intel AX201 Bluetooth 12driver btusb 12v 0.8 12type USB 12rev 2.0 12speed 12 Mb/s 12lanes 1
    12bus-ID 3-14:3 12chip-ID 8087:0026
  12Report btmgmt 12ID hci0 12rfk-id 0 12state down 12bt-service enabled,running 12rfk-block 12hardware no
    12software no 12address <filter> 12bt-v 5.2 12lmp-v 11
12RAID:
  12Hardware-1 Intel Volume Management Device NVMe RAID Controller 12driver vmd 12v 0.6
    12bus-ID 0000:00:0e.0 12chip-ID 8086:9a0b
12Drives:
  12Local Storage 12total 942.7 GiB 12used 150.29 GiB (15.9%)
  12ID-1 /dev/nvme0n1 12vendor Kingston 12model SNVS500G 12size 465.76 GiB 12speed 31.6 Gb/s 12lanes 4
    12serial <filter> 12temp 44.9 C
  12ID-2 /dev/nvme1n1 12vendor Samsung 12model MZVL2512HCJQ-00BH1 12size 476.94 GiB 12speed 63.2 Gb/s
    12lanes 4 12serial <filter> 12temp 46.9 C
12Partition:
  12ID-1 / 12size 227.69 GiB 12used 102.65 GiB (45.1%) 12fs ext4 12dev /dev/nvme0n1p5
  12ID-2 /boot/efi 12size 719.6 MiB 12used 19.3 MiB (2.7%) 12fs vfat 12dev /dev/nvme0n1p4
12Swap:
  12ID-1 swap-1 12type zram 12size 8 GiB 12used 0 KiB (0.0%) 12priority 100 12dev /dev/zram0
12Sensors:
  12System Temperatures 12cpu N/A 12mobo N/A
  12Fan Speeds (rpm) 12cpu 2209 12fan-2 2406
12Info:
  12Memory 12total 32 GiB 12note est. 12available 30.98 GiB 12used 7.9 GiB (25.5%)
  12Processes 408 12Power 12uptime 2h 5m 12wakeups 1 12Init systemd 12v 256 12target graphical (5)
    12default graphical
  12Packages 12pm rpm 12pkgs N/A 12note see --rpm 12pm flatpak 12pkgs 25 12Compilers 12gcc 14.2.1 12Client Unknown
    Client: flatpak-session-helper 12inxi 3.3.36

That nvidia GTX 1650 GPU is not supported by the new open source nvidia drivers. I believe that driver only supports the latest 3000 and 4000 series cards.
Your inxi output shows that the nouveau driver is used.

Please show us the output of dnf list --installed \*nvidia\*
Also please share the command used to install the NVIDIA drivers you claim to be using.

Here is the output you asked for.

Installed packages
nvidia-gpu-firmware.noarch 20241110-1.fc41 updates

And, I did not explicitly install any other tool or program to use that GPU. When I installed Fedora for the first time, I saw that it could detect my monitor without any additional driver program. So, I went ahead without installing any proprietary drivers.

Ok, I understand.
The nouveau driver does not support hardware acceleration with the nvidia gpu, but it should work as long as you are not into graphics intensive activities.

I don’t see what may be causing those apps to crash with auto-start unless it is a timing issue related to the driver, although that really should not be the cause since the driver is loaded at boot and the app is starting when you log in.

1 Like

Even I am clueless; what might be preventing those apps from auto-starting? They are not some graphics-intensive application.

Are you running wayland on both machines?

Yes, I am.

1 Like

Do you see this on both machines?

Additional troubleshooting steps:

  • Check if the issue persists on a new user with default profile settings.
  • Make a diff for your session environment variables between the machines.
  • Try creating a custom autostart script that logs both stderr and stdout.
  • Add a delay before launching executables to avoid possible race conditions.

I don’t see this on my office workstation. I see this only on my personal computer.

  • I have created a new user and the issue persisted for that user.
  • Kindly elaborate on this.
  • I don’t have the expertise to do this.
  • I have tried this one too, but it did not work out either.

That error message seems worth investigating:
Failed to create wl_display - Google Search

env | sort > ${HOSTNAME}.env
diff *.env
mkdir -p ~/.config/autostart
tee ~/.config/autostart/test.desktop << EOF > /dev/null
[Desktop Entry]
Type=Application
Name=Test
Exec=${HOME}/test.sh
EOF
tee ~/test.sh << "EOF" > /dev/null
#!/usr/bin/bash
exec &> ${0%.*}.log
sleep 10
env | sort
flameshot
EOF
chmod +x ~/test.sh