Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49406 - Providing jedit.desktop to see jEdit in gnome menu
Summary: Providing jedit.desktop to see jEdit in gnome menu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Ray Russell Reese III (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-29 12:08 UTC by Gustav Schaffter
Modified: 2005-08-11 01:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A simpe (English only) Gnome menu definition file. (jedit.desktop,186 bytes, text/plain)
2004-04-29 12:09 UTC, Gustav Schaffter
Details
Improved .desktop file for jedit (jedit.desktop,896 bytes, text/plain)
2005-08-11 01:47 UTC, rajas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustav Schaffter 2004-04-29 12:08:19 UTC
The app-editors/jedit ebuild (version 4.1) doesn't contain the file /usr/share/applications/jedit.desktop which means that the jEdit application doesn't show up in the Gnome menu.

I will attach a file that I use (English only). This file could(/should?) be added to the jEdit ebuild.

From there, other jEdit users may provide national translations to complement the file.

Just wanted to get the ball rolling... ;-)

Gus


Reproducible: Always
Steps to Reproduce:
1. emerge jedit
2. load gnome
3. search for jEdit in the Gnome menu

Actual Results:  
jEdit does not show up in the Gnome menu.

Expected Results:  
jEdit should show up in the Gnome menu.
Comment 1 Gustav Schaffter 2004-04-29 12:09:59 UTC
Created attachment 30340 [details]
A simpe (English only) Gnome menu definition file.
Comment 2 foser (RETIRED) gentoo-dev 2004-05-05 02:50:36 UTC
not gnome
Comment 3 Ray Russell Reese III (RETIRED) gentoo-dev 2004-12-27 12:33:31 UTC
I've added this feature now. jedit.desktop will be installed if kde or gnome is set in USE. Thanks for the file.
Comment 4 foser (RETIRED) gentoo-dev 2004-12-28 07:29:08 UTC
you also might want to add a MimeType directive for gnome : text/plain text/x-java  .
Also maybe add Utility & TextEditor to Categories.
Comment 5 rajas 2005-08-11 01:47:27 UTC
Created attachment 65642 [details]
Improved .desktop file for jedit

Did the things foser said: Added categories and mime-types. The mimetypes were
taken from gvim.desktop, so they should be nearly complete.
Comment 6 rajas 2005-08-11 01:52:59 UTC
It also improves the ebuild to use the .desktop-file and update the
fdo-mime-database after installing jEdit. So to say:

inherit fdo-mime

src_compile() {
-       make_desktop_entry jedit "jEdit" jedit
+       domenu ${FILESDIR}/jedit.desktop
}

 pkg_postinst() {
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+
 }

 pkg_postrm() {
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
}

Sorry, next time i'll provide a patch ;)