Bug 2231073

Summary: It is not possible to set a custom icon to copy of firefox
Product: [Fedora] Fedora Reporter: Adam Kaňkovský <akankovs>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: awilliam, erack, gecko-bugs-nobody, jhorak, klaas, rstrode, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 10:27:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Kaňkovský 2023-08-10 13:20:17 UTC
I tried to create a copy of Firefox in /usr/lib64/firefox/ with my own name and create my own .desktop file, but the new application only took the firefox.desktop file. I also tried to use update-desktop-database, which also created a new application from the .desktop file I created, but when it started it was still Firefox with the default icon and name.

Reproducible: Always

Actual Results:  
Firefox with default icon and application name

Expected Results:  
Firefox with a modified name and application icon, which does not affect the original Firefox in any way

Example of a .desktop file that needs to be changed to Exec https://github.com/rhinstaller/anaconda/blob/master/data/liveinst/liveinst.desktop

Comment 1 Martin Stransky 2023-08-15 11:30:17 UTC
Set correct remoting name is the key here. Needs some code changes to integrate it with out recent Firefox.

Comment 2 Fedora Release Engineering 2023-08-16 08:14:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 3 Martin Stransky 2023-08-16 16:45:44 UTC
In firefox-116.0.2-2.fc39 you can set MOZ_APP_REMOTINGNAME env variable which overrides default application name exported to system. Run as:

MOZ_APP_REMOTINGNAME="anaconda" firefox

You also need to install proper desktop file (/usr/share/applications/anaconda.desktop):

```
[Desktop Entry]
Version=1.0
Name=Anaconda
GenericName=Anaconda Installer
Comment=Install it!
Exec=anaconda
Icon=org.fedoraproject.AnacondaInstaller
Terminal=false
Type=Application
StartupNotify=true
```

You also need to create /usr/bin/anaconda launcher where you set all env variables etc.

Comment 4 Adam Williamson 2023-08-28 06:45:51 UTC
Filed https://bugzilla.redhat.com/show_bug.cgi?id=2235244 for the anaconda side.