ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Mikhail Yakshin <greycat@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] ~/.config/ (was gear-tarimport)
Date: Wed, 31 Jan 2007 17:28:21 +0300
Message-ID: <45C0A785.4030306@altlinux.org> (raw)
In-Reply-To: <20070131140831.GA12755@mw.local.seiros.ru>

Денис Смирнов пишет:
> Либа ищет _путь_ конфига. Находит. Только можно в качестве конфига её
> просить не путь к файлу, а путь к _каталогу_. Тогда отрабатывает все
> нормально.
> 
> Концепт ушел в git под именем libxdgconfig.

Если смотреть в эти стандарты, то есть еще:

There is a single base directory relative to which user-specific 
configuration files should be written. This directory is defined by the 
environment variable $XDG_CONFIG_HOME.

There is a set of preference ordered base directories relative to which 
configuration files should be searched. This set of directories is 
defined by the environment variable $XDG_CONFIG_DIRS.

$XDG_CONFIG_DIRS defines the preference-ordered set of base directories 
to search for configuration files in addition to the $XDG_CONFIG_HOME 
base directory. The directories in $XDG_CONFIG_DIRS should be seperated 
with a colon ':'.

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to 
/etc/xdg should be used.

The order of base directories denotes their importance; the first 
directory listed is the most important. When the same information is 
defined in multiple places the information defined relative to the more 
important base directory takes precedent. The base directory defined by 
$XDG_DATA_HOME is considered more important than any of the base 
directories defined by $XDG_DATA_DIRS. The base directory defined by 
$XDG_CONFIG_HOME is considered more important than any of the base 
directories defined by $XDG_CONFIG_DIRS.

Т.е. надо еще проходить по списку XDG_CONFIG_DIRS и анализировать его. 
XDG_CONFIG_HOME - это только первый его элемент. И искать, видимо, нужно 
будет все-таки конкретный файл, а не только путь...

P.S. А зачем в новой библиотеке autotools использовать?

-- 
WBR, Mikhail Yakshin


  reply	other threads:[~2007-01-31 14:28 UTC|newest]

Thread overview: 138+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-24 13:47 [devel] Import cvs to git Vitaly Ostanin
2007-01-24 17:00 ` Sergey Vlasov
2007-01-25 17:05   ` [devel] I: gear-tarimport (was: Re: Import cvs to git) Aleksey Avdeev
2007-01-25 19:59     ` [devel] I: gear-tarimport Mikhail Yakshin
2007-01-25 21:19       ` Alexey I. Froloff
2007-01-25 22:59         ` Mikhail Yakshin
2007-01-26  6:44           ` Kirill Maslinsky
2007-01-26 10:57             ` Mikhail Yakshin
2007-01-27 10:10               ` Anton Farygin
2007-01-27 13:08               ` Kirill Maslinsky
2007-01-27 14:16                 ` Mikhail Yakshin
2007-01-27 15:08                 ` [devel] git: plumbing or porcelain Dmitry V. Levin
2007-01-27 13:47               ` [devel] I: gear-tarimport Alexey I. Froloff
2007-01-27 15:22               ` [devel] comfort Dmitry V. Levin
2007-01-27 20:48                 ` [devel] [flame] было про сomfort, стало про spt Denis Medvedev
2007-01-28 17:05                   ` Nick S. Grechukh
2007-01-28 18:48                     ` Konstantin A. Lepikhov
2007-01-28 19:28                       ` Nick S. Grechukh
2007-01-28 19:47                         ` Konstantin A. Lepikhov
2007-01-28 19:52                           ` Nick S. Grechukh
2007-01-28 20:06                             ` Konstantin A. Lepikhov
2007-01-28 20:11                       ` [devel] [flame] было про сomfort , " Hihin Ruslan
2007-01-28 20:25                         ` Konstantin A. Lepikhov
2007-01-28 21:03                           ` Hihin Ruslan
2007-01-28 21:29                             ` Konstantin A. Lepikhov
2007-01-29  5:40                               ` Hihin Ruslan
2007-01-28 21:28                           ` Denis Medvedev
2007-01-28 21:41                             ` Konstantin A. Lepikhov
2007-01-29  6:46                               ` Denis Medvedev
2007-01-29 15:03                     ` [devel] mkmar Dmitry V. Levin
2007-02-02 11:23               ` [devel] I: gear-tarimport Nick S. Grechukh
2007-01-27 13:57           ` Alexey I. Froloff
2007-01-27 14:30             ` Mikhail Yakshin
2007-01-27 14:51               ` Alexey I. Froloff
2007-01-27 15:39                 ` Mikhail Yakshin
2007-01-27 17:49                   ` Michael Shigorin
2007-01-27 17:57                   ` Sviatoslav Sviridov
2007-01-28 15:20                     ` Alexey Tourbin
2007-01-28  5:10               ` Денис Смирнов
2007-01-28 15:13                 ` Mikhail Yakshin
2007-01-28 16:24                   ` Alexey I. Froloff
2007-01-28 20:32                   ` [devel] I: gear-tarimport (habits) Michael Shigorin
2007-01-28 21:14                     ` Alexey Tourbin
2007-01-28 23:37                   ` [devel] I: gear-tarimport Kirill A. Shutemov
2007-01-29 18:45                   ` Денис Смирнов
2007-01-29 20:27                     ` Mikhail Yakshin
2007-01-29 20:35                       ` Alexey Tourbin
2007-01-29 21:32                         ` Mikhail Yakshin
2007-01-29 21:45                           ` Eugene Ostapets
2007-01-29 21:56                             ` Alexey Tourbin
2007-01-29 21:59                               ` Eugene Ostapets
2007-01-29 22:58                                 ` Alexey I. Froloff
2007-01-30  4:30                                   ` Andrey Rahmatullin
2007-01-30 12:02                                   ` Денис Смирнов
2007-01-30 12:00                               ` Денис Смирнов
2007-01-30 11:57                           ` Денис Смирнов
2007-01-30 11:55                         ` Денис Смирнов
2007-01-30 12:06                           ` Led
2007-01-30 12:16                             ` Денис Смирнов
2007-01-30 12:43                               ` Led
2007-01-30 19:55                                 ` Денис Смирнов
2007-01-30 22:03                                   ` Dmitry V. Levin
2007-01-31  9:18                                   ` [devel] ~/.config/ (was gear-tarimport) Led
2007-01-31  9:22                                     ` Eugene Ostapets
2007-01-31  9:35                                       ` Mikhail Yakshin
2007-01-31  9:37                                         ` Eugene Ostapets
2007-01-31 11:36                                         ` Денис Смирнов
2007-01-31 12:24                                           ` Mikhail Yakshin
2007-01-31 12:46                                             ` Денис Смирнов
2007-01-31 13:01                                               ` Mikhail Yakshin
2007-01-31 14:11                                                 ` Денис Смирнов
2007-02-02 19:06                                                   ` Kirill Maslinsky
2007-02-02 23:20                                                     ` Денис Смирнов
2007-01-31 13:13                                               ` Sergey Vlasov
2007-01-31 18:02                                             ` Alexey I. Froloff
2007-01-31  9:48                                       ` Led
2007-01-31  9:57                                         ` Damir Shayhutdinov
2007-01-31 10:05                                           ` Eugene Ostapets
2007-01-31 10:21                                             ` Damir Shayhutdinov
2007-01-31 10:30                                               ` Eugene Ostapets
2007-01-31 10:43                                                 ` Led
2007-01-31 10:43                                                   ` Mikhail Yakshin
2007-01-31 10:47                                                   ` Eugene Ostapets
2007-01-31 10:56                                                     ` Led
2007-02-03  6:46                                                     ` Vitaly Lipatov
2007-01-31 11:38                                                   ` Денис Смирнов
2007-01-31 11:41                                                     ` Led
2007-01-31 11:42                                               ` Денис Смирнов
2007-01-31 11:49                                                 ` Dmitry V. Levin
2007-01-31 12:26                                                 ` Mikhail Yakshin
2007-01-31 12:43                                                   ` Денис Смирнов
2007-01-31 12:54                                                     ` Damir Shayhutdinov
2007-01-31 14:09                                                       ` Денис Смирнов
2007-01-31 14:22                                                         ` Damir Shayhutdinov
2007-01-31 14:24                                                           ` Damir Shayhutdinov
2007-01-31 15:17                                                             ` Денис Смирнов
2007-01-31 15:16                                                           ` Денис Смирнов
2007-01-31 15:27                                                             ` Damir Shayhutdinov
2007-01-31 16:30                                                               ` Денис Смирнов
2007-01-31 16:37                                                                 ` Damir Shayhutdinov
2007-01-31 16:45                                                                   ` Денис Смирнов
2007-01-31 16:48                                                                 ` Damir Shayhutdinov
2007-01-31 17:09                                                                   ` Денис Смирнов
2007-01-31 12:59                                                     ` Led
2007-01-31 14:08                                                       ` Денис Смирнов
2007-01-31 14:28                                                         ` Mikhail Yakshin [this message]
2007-01-31 15:14                                                           ` Денис Смирнов
2007-01-31 16:37                                                           ` Денис Смирнов
2007-01-31 10:06                                           ` Led
2007-01-31  9:59                                         ` Eugene Ostapets
2007-01-31 11:34                                         ` Денис Смирнов
2007-01-31 11:33                                     ` Денис Смирнов
2007-01-31  9:33                                 ` [devel] I: gear-tarimport Mikhail Yakshin
2007-01-31  9:55                                   ` Mikhail Gusarov
2007-01-31 10:04                                   ` Mikhail Gusarov
2007-01-31 10:33                                     ` Mikhail Yakshin
2007-01-31 10:40                                       ` Eugene Ostapets
2007-01-30 11:55                       ` Денис Смирнов
2007-01-30 12:04                         ` Led
2007-01-31 10:22                         ` Mikhail Yakshin
2007-01-31 12:42                           ` Денис Смирнов
2007-02-01 22:37                             ` [devel] Maintainer's toolbox (was: I: gear-tarimport) Mikhail Yakshin
2007-02-01 23:58                               ` Денис Смирнов
2007-02-02  9:21                                 ` [devel] Maintainer's toolbox Mikhail Yakshin
2007-02-02 10:16                                   ` Michael Shigorin
2007-02-02 15:16                                     ` Mikhail Yakshin
2007-02-03 21:29                                       ` [devel] [JT] " Michael Shigorin
2007-02-02 14:59                                   ` [devel] " Денис Смирнов
2007-02-02 15:31                                     ` Mikhail Yakshin
2007-02-09  0:47                                       ` Денис Смирнов
2007-01-27 15:10             ` [devel] I: gear-tarimport Mikhail Gusarov
2007-02-02 11:21               ` Led
2007-01-27 18:32           ` Alexey I. Froloff
2007-01-28 14:44             ` Mikhail Yakshin
2007-01-27 11:54       ` Aleksey Avdeev
2007-01-27 12:54         ` Mikhail Yakshin
2007-01-27 13:07           ` Aleksey Avdeev
2007-01-25 18:34 ` [devel] Import cvs to git Sergey Vlasov

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=45C0A785.4030306@altlinux.org \
    --to=greycat@altlinux.org \
    --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