Bug 248997 - devel/thonny: missing desktop entry
Summary: devel/thonny: missing desktop entry
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Wen Heping
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-29 21:05 UTC by Chris Hutchinson
Modified: 2024-01-02 13:00 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (wen)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Hutchinson 2020-08-29 21:05:06 UTC
This port doesn't install a desktop entry. Which
makes launching it only available by way of a
terminal; thonny &
The source provides a desktop entry as:

${WRKSRC}thonny-3.2.7/packaging/linux/org.thonny.Thonny.desktop

It requires modification:
s|/usr/bin/thonny|/usr/local/bin/thonny|g

After which, can be copied as: share/applications/thonny.desktop

It also provides a suitable icon in:
${WRKSRC}thonny-3.2.7/packaging/icons/thonny-32x32.png

which could be copied as:
share/pixmaps/thonny.png

This was what I performed to make a working desktop entry.

HTH

Thanks!

--Chris
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2022-08-08 23:13:21 UTC
Hi Chris!

Can you submit a patch?

Best regards,
Daniel
Comment 2 Scott Furry 2023-12-14 07:53:48 UTC
Bug has been here awhile. This is "low-hanging" fruit for a dev-in-training.

FWIW, and to keep things upto date:
1) grab existing desktop file from upstream
(https://github.com/thonny/thonny/blob/master/packaging/linux/Thonny.desktop)
 - save to /usr/local/share/applications/Thonny.desktop

2) edit desktop file...
- replace "$local_dir" with FreeBSD prefix -> "/usr/local"
- replace "Icon=..." to read "Icon=thonny"

3) create a sim link of existing icon file in packaging
(following practice of other packages - thunderbird et al)

# cd /usr/local/share/pixmaps
# ln -s /usr/local/lib/python3.9/site-packages/thonny/res/thonny.png thonny.png

Item should show up in menu under Development with icon.
Comment 3 Kenneth Raplee 2024-01-02 13:00:01 UTC
I submitted a patch for this:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276076