ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Rusakov <ktirf@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Временные пути
Date: Thu, 17 Feb 2005 17:09:32 +0300
Message-ID: <4214A59C.5030402@altlinux.ru> (raw)
In-Reply-To: <20050217150300.58ff3f0c@super-comp.home.net>

On 17.02.2005 16:03, Drool wrote:
> 	Есть программулина, исполняемый файл лежит в /usr/bin, который жестко хотит
> присутствия в этом же каталоге директорий img и res... Захламлять /usr/bin
> сторонними папками некрасиво, я их сложил в /usr/share/имя_программы, а из
> положения вышел путем создания симлинков на нее в /usr/bin... Тоже не есть
> совсем кошерно... Вижу выход в создании запускающего sh-скрипта типа
> 
> 	cd /usr/bin/
> 	./имя_программы
> 
> 	Но возможно ли задание в этом файле временного пути на время запуска программы,
> который бы обманывал ее и подсовывал нужные пути к нужным каталогам?
Может, всё-таки в консерватории подправить? Передо мной буквально вчера 
стояла точно такая же задача, и я хакнул исходники, заменив все 
относительные пути на #define, лежащий в отдельном файле. 
Соответственно, файл #include'нул там, где он оказывается нужен.

Насчёт скрипта - я не очень понял, чего вы хотите добиться. Если у вас 
есть каталог /usr/share/имя_программы/, вы переходите в него, оттуда 
выполняете /usr/bin/имя_программы и радуетесь жизни. Или программе 
критично, чтобы её бинарник в текущем каталоге лежал? Тогда уж точно 
надо в консерватории править.

-- 
   Alexey "Ktirf" Rusakov


  reply	other threads:[~2005-02-17 14:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-17 13:03 Drool
2005-02-17 14:09 ` Alexey Rusakov [this message]
2005-02-17 14:16   ` Dmytro O. Redchuk
2005-02-17 14:43 ` Zilke Pavel
2005-02-17 14:46   ` Alexey Rusakov
2005-02-18  8:53   ` Drool

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=4214A59C.5030402@altlinux.ru \
    --to=ktirf@altlinux.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git