Birdtray cannot start Thunderbird installed from official repository with the command /usr/bin/thunderbird

I have installed Thunderbird from the official repository using the command sudo dnf install thunderbird. The application runs normally from the terminal with both /usr/bin/thunderbird and thunderbird commands. Additionally, I can launch Thunderbird from the application menu without any issues.

I also installed Birdtray from Flathub; its application ID is com.ulduzsoft.Birdtray. Since Birdtray is configured to look for the Flathub version of Thunderbird, I have overwritten the command line option under the advanced tab in the configuration module with /usr/bin/thunderbird.

However, Birdtray fails to start Thunderbird, displaying the following error in the dialog box:

Error starting Thunderbird as '/usr/bin/thunderbird':
execvp: No such file or directory

Even when I set the command to just thunderbird, it attempts to find Thunderbird in my home directory, resulting in a path like /home/username/thunderbird and throws the same type of error.

If none of these commands work, what command should Birdtray use to start Thunderbird? I have already raised this issue on the GitHub repository for Birdtray but haven’t received any assistance there. Therefore, I am posting this problem here as a last resort.

The Birdtray flatpak is running inside a sandbox, so it can’t run /usr/bin/thunderbird directly. The flatpak build is configured by default to invoke:

/usr/bin/flatpak-spawn --host flatpak run org.mozilla.Thunderbird

For the RPM version of thunderbird, this should work:

/usr/bin/flatpak-spawn --host /usr/bin/thunderbird
1 Like

Now I am getting this error.

Error starting Thunderbird as '/usr/bin/flatpak-spawn --host /usr/bin/thunderbird':

Unknown error

I am getting this error; I found this in the log window of Birdtray.

2024-07-05 11:53:04 Birdtray version 1.11.4 started 2024-07-05 11:53:04 
Triggering the unread counter update 2024-07-05 11:53:04
 Window ID found: 0 2024-07-05 11:53:04 
Starting Thunderbird as '/usr/bin/flatpak-spawn --host /usr/bin/thunderbird' 
2024-07-05 11:53:05 Window ID found: 0 
2024-07-05 11:53:06 Window ID found: 0 
2024-07-05 11:53:07 Window ID found: 0 

This is the updated output I got from the log window of Birdtray. I hope that may give some hints about why this error is occurring.

2024-07-08 21:54:31 Birdtray version 1.11.4 started
2024-07-08 21:54:32 Triggering the unread counter update
2024-07-08 21:54:32 Window ID found: 0
2024-07-08 21:54:32 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:33 Window ID found: 0
2024-07-08 21:54:33 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:34 Window ID found: 0
2024-07-08 21:54:34 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:35 Window ID found: 0
2024-07-08 21:54:35 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:36 Window ID found: 0
2024-07-08 21:54:36 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:37 Window ID found: 0
2024-07-08 21:54:37 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:38 Window ID found: 0
2024-07-08 21:54:38 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:39 Window ID found: 0
2024-07-08 21:54:39 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:40 Window ID found: 0
2024-07-08 21:54:40 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:41 Window ID found: 0
2024-07-08 21:54:41 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:42 Window ID found: 0
2024-07-08 21:54:43 Window ID found: 0
2024-07-08 21:54:44 Window ID found: 0
2024-07-08 21:54:44 Window ID found: 0
2024-07-08 21:54:44 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:45 Window ID found: 0
2024-07-08 21:54:45 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:46 Window ID found: 0
2024-07-08 21:54:46 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:47 Window ID found: 0
2024-07-08 21:54:47 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:48 Window ID found: 0
2024-07-08 21:54:48 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:49 Window ID found: 0
2024-07-08 21:54:49 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:50 Window ID found: 0
2024-07-08 21:54:50 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:51 Window ID found: 0
2024-07-08 21:54:51 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:52 Window ID found: 0
2024-07-08 21:54:52 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:53 Window ID found: 0
2024-07-08 21:54:53 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:54 Window ID found: 0
2024-07-08 21:54:54 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:55 Window ID found: 0
2024-07-08 21:54:55 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:56 Window ID found: 0
2024-07-08 21:54:56 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:57 Window ID found: 0
2024-07-08 21:54:57 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:58 Window ID found: 0
2024-07-08 21:54:58 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:54:59 Window ID found: 0
2024-07-08 21:54:59 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:00 Window ID found: 0
2024-07-08 21:55:00 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:01 Window ID found: 0
2024-07-08 21:55:01 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:02 Window ID found: 0
2024-07-08 21:55:02 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:03 Window ID found: 0
2024-07-08 21:55:03 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:04 Window ID found: 0
2024-07-08 21:55:04 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:05 Window ID found: 0
2024-07-08 21:55:05 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:06 Window ID found: 0
2024-07-08 21:55:06 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:07 Window ID found: 0
2024-07-08 21:55:07 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:08 Window ID found: 0
2024-07-08 21:55:08 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:09 Window ID found: 0
2024-07-08 21:55:09 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:10 Window ID found: 0
2024-07-08 21:55:10 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:11 Window ID found: 0
2024-07-08 21:55:11 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:12 Window ID found: 0
2024-07-08 21:55:12 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:13 Window ID found: 0
2024-07-08 21:55:13 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:14 Window ID found: 0
2024-07-08 21:55:14 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:15 Window ID found: 0
2024-07-08 21:55:15 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:15 Window ID found: 0
2024-07-08 21:55:15 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:16 Window ID found: 0
2024-07-08 21:55:16 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:17 Window ID found: 0
2024-07-08 21:55:17 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:18 Window ID found: 0
2024-07-08 21:55:18 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:19 Window ID found: 0
2024-07-08 21:55:19 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:20 Window ID found: 0
2024-07-08 21:55:20 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:21 Window ID found: 0
2024-07-08 21:55:21 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:22 Window ID found: 0
2024-07-08 21:55:22 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:23 Window ID found: 0
2024-07-08 21:55:23 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:24 Window ID found: 0
2024-07-08 21:55:24 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:25 Window ID found: 0
2024-07-08 21:55:25 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:26 Window ID found: 0
2024-07-08 21:55:26 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:27 Window ID found: 0
2024-07-08 21:55:27 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:27 Triggering the unread counter update
2024-07-08 21:55:28 Window ID found: 0
2024-07-08 21:55:28 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:29 Window ID found: 0
2024-07-08 21:55:29 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:30 Window ID found: 0
2024-07-08 21:55:30 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:31 Window ID found: 0
2024-07-08 21:55:31 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:32 Window ID found: 0
2024-07-08 21:55:32 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:33 Window ID found: 0
2024-07-08 21:55:33 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:34 Window ID found: 0
2024-07-08 21:55:34 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:35 Window ID found: 0
2024-07-08 21:55:35 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:36 Window ID found: 0
2024-07-08 21:55:36 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:37 Window ID found: 0
2024-07-08 21:55:37 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:38 Window ID found: 0
2024-07-08 21:55:38 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:39 Window ID found: 0
2024-07-08 21:55:39 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:40 Window ID found: 0
2024-07-08 21:55:40 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:41 Window ID found: 0
2024-07-08 21:55:41 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:42 Window ID found: 0
2024-07-08 21:55:42 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:43 Window ID found: 0
2024-07-08 21:55:43 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:44 Window ID found: 0
2024-07-08 21:55:44 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:45 Window ID found: 0
2024-07-08 21:55:45 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:46 Window ID found: 0
2024-07-08 21:55:46 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:47 Window ID found: 0
2024-07-08 21:55:47 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:48 Window ID found: 0
2024-07-08 21:55:48 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:49 Window ID found: 0
2024-07-08 21:55:49 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:50 Window ID found: 0
2024-07-08 21:55:50 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:51 Window ID found: 0
2024-07-08 21:55:51 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:52 Window ID found: 0
2024-07-08 21:55:52 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:53 Window ID found: 0
2024-07-08 21:55:53 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:54 Window ID found: 0
2024-07-08 21:55:54 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:55 Window ID found: 0
2024-07-08 21:55:55 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:56 Window ID found: 0
2024-07-08 21:55:56 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’
2024-07-08 21:55:57 Window ID found: 0
2024-07-08 21:55:57 Starting Thunderbird as ‘/usr/bin/flatpak-spawn --host thunderbird’

Added flathub, flatpak, thunderbird

Nice info but this is really bad. It requires the app to have access to a very insecure permission and will only launch Thunderbird new. This does not work if it is already running.

Background: if an app can use flatpak-spawn --host it is completely unisolated so the security aspect is nonfunctional.

So, what can be done?

There needs to be a portal for that. Until then, no idea.