Icons in .desktop files are hardcoded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.5 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
python3.6 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
python3.7 (Ubuntu) |
New
|
Undecided
|
Unassigned |
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/
Solution:
Instead of hardcoding the icon to "/usr/share/
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/
Icon=/usr/
Terminal=true
Type=Application
Categories=
StartupNotify=true
NoDisplay=true
X-Desktop-
to this:
[Desktop Entry]
Name=Python (v3.5)
Comment=Python Interpreter (v3.5)
Exec=/usr/
Icon=python3
Terminal=true
Type=Application
Categories=
StartupNotify=true
X-Desktop-
Information:
$ lsb_release -rd
Description: Linux Mint 18.2 Sonya
Release: 18.2
$ apt-cache policy python3
python3:
Installiert: 3.5.1-3
Installations
Versionstabelle:
*** 3.5.1-3 500
500 http://
100 /var/lib/
$
Thanks,
- Linus
Hi,
The desktop files come from Debian, so I suggest you report this against the Debian bug tracker, using the reportbug command or by sending email as instructed in https:/ /www.debian. org/Bugs/ Reporting.
The bug should be reported against the python3.5 package. (Because that's the version you have. Some more python2.x and python3.y packages are actually also affected.) To verify which package owns a file, use the command "dpkg -S /usr/share/ applications/ python* .desktop" .
Regards,
Juhani Numminen