FreeCAD Icon for Ubuntu

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
chrisb
Veteran
Posts: 54313
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD Icon for Ubuntu

Post by chrisb »

M4x wrote: correct, I used the version from the repo and not the last stable. My mistake. It wasn't enough to perform

Code: Select all

sudo apt-get update
sudo apt-get upgrade
I changed the documentation so it says now to use

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
instead. It has better handling of release changes.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
M4x
Veteran
Posts: 1486
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: FreeCAD Icon for Ubuntu

Post by M4x »

But aren't you upgrading the whole system by using dist-upgrade?
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD Icon for Ubuntu

Post by NormandC »

See https://askubuntu.com/questions/81585/w ... rade#81594
dist-upgrade
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. So, dist-upgrade
command may remove some packages. The /etc/apt/sources.list file
contains a list of locations from which to retrieve desired package
files. See also apt_preferences(5) for a mechanism for overriding
the general settings for individual packages.
User avatar
M4x
Veteran
Posts: 1486
Joined: Sat Mar 11, 2017 9:23 am
Location: Germany

Re: FreeCAD Icon for Ubuntu

Post by M4x »

Thanks again!
User avatar
kkremitzki
Veteran
Posts: 2518
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD Icon for Ubuntu

Post by kkremitzki »

NormandC wrote:So what's needed is to simply rename the Icon entry to "freecad-daily" instead of "freecad".

I will make the change on the Daily PPA so the next update should fix the icon.
Hmm, this will break icon themes though. For example, I use the Numix Circle theme, so "Icon=freecad" resolves to /usr/share/icons/Numix-Circle/48/apps/freecad.svg, so in order for "Icon=freecad-daily" to show the correct icon, either I or the icon theme package maintainers would need to create a freecad-daily.svg symlink pointing at the appropriate freecad.svg.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD Icon for Ubuntu

Post by NormandC »

Did you place this icon there yourself? How exactly does that break the icon theme?

I'm only following the freedesktop.org guidelines, and please do not forget that we need to ensure that both the stable and daily PPA packages have to be able to cohabit. Therefore using only "freecad" for the freecad-daily package icon shouldn't be permitted.
User avatar
kkremitzki
Veteran
Posts: 2518
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: FreeCAD Icon for Ubuntu

Post by kkremitzki »

NormandC wrote:Did you place this icon there yourself? How exactly does that break the icon theme?

I'm only following the freedesktop.org guidelines, and please do not forget that we need to ensure that both the stable and daily PPA packages have to be able to cohabit. Therefore using only "freecad" for the freecad-daily package icon shouldn't be permitted.
No, it was placed there by the numix-icon-theme-circle package. When I change the .desktop file to use "Icon=freecad-daily", it falls back to the non-themed icon because there is no freecad-daily.svg file in the /usr/share/icons/Numix-Circle folder. This would be true for any other icon theme.

Before: freecad-daily.desktop has Icon=freecad
before.png
before.png (24.91 KiB) Viewed 1575 times
After: freecad-daily.desktop has Icon=freecad-daily
after.png
after.png (26.76 KiB) Viewed 1575 times
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: FreeCAD Icon for Ubuntu

Post by NormandC »

It's great that the Numix icon theme has a freecad icon.

But as for the freecad-daily icon that will now be missing from the theme, I'm afraid that in my opinion this is how it should be.

Currently, when installed stand-alone, the freecad-daily package does not have an icon on default Ubuntu icon themes. This needs to be fixed, and I don't think forcing users to install the freecad package to solve this is reasonable.

The freecad package from the official Ubuntu repo and the stable PPA should take precedence over the freecad icon name, after all the daily package is a development version that should only be used by experienced users for testing.
Post Reply