Firefox can't detect app after its environment variable is changed
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: nowshed.imran, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Steps to reproduce:
In order to use Qt application in Wayland, a special environment variable needs to be set.
Reference: https://wiki.archlinux.org/title/Wayland#Qt
In order to use qBittorrent, I did the following,
- Install qt6-wayland from Arch Repository, as Qbittorrent is built with qt6 by default.
- Edit Application and set Environment variable as "QT_QPA_PLATFORM=wayland".
Now, by running "QT_QPA_PLATFORM=wayland qbittorrent", I can use this app natively.
User Agent Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Actual results:
Before doing these steps, I could open the downloaded torrent file with the application. However, Firefox can't detect qBittorrent as an installed application anymore. See the screenshots.
For testing purpose, after following the steps, try download and opening the torrent file of Ubuntu LTS 22.04 from its official repository.
Expected results:
Firefox would be able to detect the application and open files with it.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::File Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•3 years ago
|
||
It looks like the platform doesn't access applications data as usual in this case, we don't have much expertise in the area thus passing down to Linux components.
| Reporter | ||
Comment 3•3 years ago
|
||
Similar situation happens, when I set PRIME offloading.
Ref: https://wiki.archlinux.org/title/PRIME
Example:
Gwenview is an image viewer on Linux.
Scenario 1:
I can start the application by the default environment variable, gwenview. In this case, Firefox can detect the application and open downloaded image with it.
Scenario 2:
My laptop has an AMD graphics card in it. I can this card to open the application by DRI_PRIME=1 gwenview. If I choose to make this default behavior, Firefox can't detect the application anymore.
Comment 4•3 years ago
|
||
Edit Application and set Environment variable as "QT_QPA_PLATFORM=wayland".
How do you do this? By editing the desktop file directly? Something else?
| Reporter | ||
Comment 5•3 years ago
|
||
Yes, I have modified the desktop file. Current entry:
[Desktop Entry]
Categories=Network;FileTransfer;P2P;Qt;
Comment=Download and share files over BitTorrent
Exec=QT_QPA_PLATFORM=wayland qbittorrent %U
GenericName=BitTorrent client
Icon=qbittorrent
Keywords=bittorrent;torrent;magnet;download;p2p;
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
Name=qBittorrent
NoDisplay=false
Path=
StartupNotify=false
StartupWMClass=qbittorrent
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
Description
•