Bug 2231073 - It is not possible to set a custom icon to copy of firefox
Summary: It is not possible to set a custom icon to copy of firefox
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-10 13:20 UTC by Adam Kaňkovský
Modified: 2023-08-28 06:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-17 10:27:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.