From: php-coder <php-coder@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Пункты меню и menu-methods
Date: Tue, 17 May 2005 17:42:16 +0700
Message-ID: <20050517104216.GA23013@mycomp.mydomain> (raw)
In-Reply-To: <200505171409.08236.zerg@altlinux.org>
--- Sergey V Turchin 2005-05-17 14:09:02 +0400
+++ php-coder 2005-05-17 17:35:36 +0700
> Лишь бы в других менеджерах не было видно секции и ее пунктов,
Об этом и забочусь :-))
> > > Можете в menu-file добавить любой параметр, например
> > > fluxbox_specific="yes" и обрабатывать его в menu-method
> > А что будет с остальными меню-методами? Не "выплывет" ли этот
> > пункт в другом WM/DE ?
> Если назовете уникально - не выплывет.
Сделал так:
fluxbox=ifelse($fluxcommand, x11_command(), embeded_command())
Т.е. если указан параметр fluxcommand в файле меню, то обрабатываем
его методом для программ, зависящих от Иксов, иначе специальным
образом.
Вот пример из файла меню:
?package(fluxbox):\
needs=fluxbox \
sort="4" \
section="Session" \
title="Update menu" \
fluxcommand="1" \
command="update-menus"
Работает. Я правильно сделал?
> > Или этот параметр нужно добавить вместе с
> > needs=fluxbox?
> Нет смысла.
Не очень понял почему :-/ У меня все работает с needs=fluxbox...
пример выше.
Спасибо за помощь!
--
+ php-coder
+ php-coder[at]altlinux[dot]ru
next prev parent reply other threads:[~2005-05-17 10:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-16 14:24 php-coder
2005-05-16 14:43 ` Sergey V Turchin
2005-05-17 6:05 ` php-coder
2005-05-17 10:09 ` Sergey V Turchin
2005-05-17 10:42 ` php-coder [this message]
2005-05-17 15:45 ` Sergey V Turchin
2005-05-17 10:17 ` Sergey V Turchin
2005-05-17 10:22 ` Sergey V Turchin
2005-05-16 15:04 ` Andrey Rahmatullin
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=20050517104216.GA23013@mycomp.mydomain \
--to=php-coder@altlinux.ru \
--cc=devel@altlinux.ru \
/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