[Bug 1745879] [NEW] Icons in .desktop files are hardcoded
Linus Groh
1745879 at bugs.launchpad.net
Sun Jan 28 21:15:41 UTC 2018
Public bug reported:
There is already a bug report in the Python bug tracker, from 2014. It
has only one response, saying the reporting person should open a bug on
their distribution's bug tracker. I'm not sure if this ever happened, so
I'm trying my luck here. If this belongs to Debian or Linux Mint please
let me know.
Problem:
The icon paths in the .desktop files shipping with both Python 2.x and 3.x are hardcoded (e.g. "/usr/share/pixmaps/python3.5.xpm"). This is extremely annoying for theming.
Solution:
Instead of hardcoding the icon to "/usr/share/pixmaps/pythonx.x.xpm", it should just say "python2" and "python3", or even "python". Almost all icon themes will work for Python then.
Also I wonder why there's the NoDisplay directive set to true. Like
this, having a desktop file makes no sense at all IMO. After each Python
update I have to edit the file again and again.
So from this:
[Desktop Entry]
Name=Python (v3.5)
Comment=Python Interpreter (v3.5)
Exec=/usr/bin/python3.5
Icon=/usr/share/pixmaps/python3.5.xpm
Terminal=true
Type=Application
Categories=Development;
StartupNotify=true
NoDisplay=true
X-Desktop-File-Install-Version=0.22
to this:
[Desktop Entry]
Name=Python (v3.5)
Comment=Python Interpreter (v3.5)
Exec=/usr/bin/python3.5
Icon=python3
Terminal=true
Type=Application
Categories=Development;
StartupNotify=true
X-Desktop-File-Install-Version=0.22
Information:
$ lsb_release -rd
Description: Linux Mint 18.2 Sonya
Release: 18.2
$ apt-cache policy python3
python3:
Installiert: 3.5.1-3
Installationskandidat: 3.5.1-3
Versionstabelle:
*** 3.5.1-3 500
500 http://ftp-stud.hs-esslingen.de/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
$
Thanks,
- Linus
** Affects: python3-defaults (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1745879
Title:
Icons in .desktop files are hardcoded
Status in python3-defaults package in Ubuntu:
New
Bug description:
There is already a bug report in the Python bug tracker, from 2014. It
has only one response, saying the reporting person should open a bug
on their distribution's bug tracker. I'm not sure if this ever
happened, so I'm trying my luck here. If this belongs to Debian or
Linux Mint please let me know.
Problem:
The icon paths in the .desktop files shipping with both Python 2.x and 3.x are hardcoded (e.g. "/usr/share/pixmaps/python3.5.xpm"). This is extremely annoying for theming.
Solution:
Instead of hardcoding the icon to "/usr/share/pixmaps/pythonx.x.xpm", it should just say "python2" and "python3", or even "python". Almost all icon themes will work for Python then.
Also I wonder why there's the NoDisplay directive set to true. Like
this, having a desktop file makes no sense at all IMO. After each
Python update I have to edit the file again and again.
So from this:
[Desktop Entry]
Name=Python (v3.5)
Comment=Python Interpreter (v3.5)
Exec=/usr/bin/python3.5
Icon=/usr/share/pixmaps/python3.5.xpm
Terminal=true
Type=Application
Categories=Development;
StartupNotify=true
NoDisplay=true
X-Desktop-File-Install-Version=0.22
to this:
[Desktop Entry]
Name=Python (v3.5)
Comment=Python Interpreter (v3.5)
Exec=/usr/bin/python3.5
Icon=python3
Terminal=true
Type=Application
Categories=Development;
StartupNotify=true
X-Desktop-File-Install-Version=0.22
Information:
$ lsb_release -rd
Description: Linux Mint 18.2 Sonya
Release: 18.2
$ apt-cache policy python3
python3:
Installiert: 3.5.1-3
Installationskandidat: 3.5.1-3
Versionstabelle:
*** 3.5.1-3 500
500 http://ftp-stud.hs-esslingen.de/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
$
Thanks,
- Linus
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1745879/+subscriptions
More information about the foundations-bugs
mailing list