unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja <akib@disroot.org>
To: Juri Linkov <juri@linkov.net>
Cc: Stefan Kangas <stefankangas@gmail.com>,
	 Emacs Developer List <emacs-devel@gnu.org>,
	 Philip Kaludercic <philipk@posteo.net>
Subject: Re: NonGNU ELPA: New package 'xdg-appmenu'
Date: Thu, 07 Sep 2023 00:47:47 +0600	[thread overview]
Message-ID: <878r9jw33g.fsf@disroot.org> (raw)
In-Reply-To: <865y4n3jfw.fsf@mail.linkov.net> (Juri Linkov's message of "Wed,  06 Sep 2023 09:27:31 +0300")

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

Juri Linkov <juri@linkov.net> writes:

>>>> I've just written a new package and would like to publish it to on
>>>> NonGNU ELPA:
>>>>
>>>> XDG Appmenu allows you to run XDG desktop application right from your
>>>> Emacs.  To run an application, just do `M-x xdg-appmenu'.
>>
>> Thanks, this looks like a useful addition.  I have two questions:
>>
>> - How does this compare to the work made by Juri in Bug#63911?  Could
>>   the efforts be merged somehow, such that the end result ends up in
>>   Emacs, or does that not make sense?  (I'm copying in Juri too.)
>
> The patch in bug#63911 relies on the helper functions implemented
> in the core package emacs/lisp/xdg.el such as 'xdg-mime-apps'
> and 'xdg-desktop-read-file'.

Is it something new (in Emacs 29 or master branch) or did I just missed
these nice functions?

>
> The package https://codeberg.org/akib/emacs-xdg-appmenu
> duplicates the work already done in xdg.el.

Taking a quick look, the answer is looks like yeah, sadly.

>
> However, it's hard to compare these two implementations.
> Maybe in case if something is missing in xdg.el
> it could be improved based on code from the package?

I don't think anything can be improved.  xdg.el contains a full-blown
desktop file parser.  And xdg-appmenu, just a hacky regexp based
implement that just looks for specific keys in a particular group.

-- 
Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5
Fediverse: akib@hostux.social
Codeberg: akib
emailselfdefense.fsf.org | "Nothing can be secure without encryption."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  parent reply	other threads:[~2023-09-06 18:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-08  9:35 NonGNU ELPA: New package 'xdg-appmenu' Akib Azmain Turja
2023-07-09 18:07 ` Akib Azmain Turja
2023-07-09 19:39   ` Eshel Yaron
2023-07-10  1:59 ` Richard Stallman
2023-07-10  7:53   ` Akib Azmain Turja
2023-07-19 16:23 ` Akib Azmain Turja
2023-09-05 18:31 ` Akib Azmain Turja
2023-09-05 20:11   ` Stefan Kangas
2023-09-06  6:27     ` Juri Linkov
2023-09-06  7:13       ` Stefan Kangas
2023-09-06 18:47       ` Akib Azmain Turja [this message]
2023-09-06 20:00         ` Stefan Kangas
2023-09-06  7:42     ` Philip Kaludercic
2023-09-06 18:56     ` Akib Azmain Turja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878r9jw33g.fsf@disroot.org \
    --to=akib@disroot.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=philipk@posteo.net \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).