From: Artem Zolochevskiy <artem.zolochevskiy@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Makefile: установка desktop-файла
Date: Wed, 25 Mar 2009 10:42:32 +0200
Message-ID: <774a4f4a0903250142p64e807adn843b25752166a7b3@mail.gmail.com> (raw)
In-Reply-To: <20090325082526.GA26572@dad.imath.kiev.ua>
25 марта 2009 г. 10:25 пользователь Igor Vlasenko
<vlasenko@imath.kiev.ua> написал:
> On Wed, Mar 25, 2009 at 08:12:36AM +0200, Artem Zolochevskiy wrote:
>> hi all
>>
>> Господа, подскажите мне о традициях/целесообразности установки файла
>> меню (.desktop) в Makefile-е.
>
>> Вопрос родился вот откуда. Я посмотрел несколько проектов, и увидел,
>> что установка предусмотрена в $(datadir)/applications/ (если вообще
>> предусмотрена).
>> Насколько это корректно? Ведь, если я не ошибаюсь, это не будет
>> работать при нестандартном --prefix. (файл меню окажется в
>> нестандартном каталоге).
>
> Программа может ставиться хоть в /opt/rozn/and/far/away/,
> но .desktop нужно бросить (с правильными путями в Exec=,
> конечно) в /usr/share/applications
> (а точнее, в $XDG_DATA_DIRS/applications/).
>
> Это правильно, и так делают в том числе
> и все популярные проприетарные программы.
>
> т.е. если апстриму хочется полный контроль над инсталляцией,
> то IMHO можно добавить доп. параметр xdg-data-dirs
> со значением по умолчанию брать из $XDG_DATA_DIRS
> либо если пусто то /usr/share.
Ага, я в эту сторону и думал.
Наверное, этим стоит и ограничится, хоть это и не учитывает установки
например в --prefix=$HOME, где и desktop-файл с большой степенью
вероятности захочется положить в пользовательский каталог.
--
Артём Золочевский
prev parent reply other threads:[~2009-03-25 8:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 6:12 Artem Zolochevskiy
2009-03-25 8:16 ` Alexey Morsov
2009-03-25 8:23 ` Mikhail Gusarov
2009-03-25 8:25 ` Igor Vlasenko
2009-03-25 8:42 ` Artem Zolochevskiy [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=774a4f4a0903250142p64e807adn843b25752166a7b3@mail.gmail.com \
--to=artem.zolochevskiy@gmail.com \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git