ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Leo-sp50 <leo-sp50@ya.ru>
To: Distributions development <devel-distro@lists.altlinux.org>
Subject: Re: [devel-distro] mkimage-profiles: regular+icewm: изменения
Date: Sat, 06 Jun 2015 11:07:09 +0300
Message-ID: <7299731433578029@web25j.yandex.ru> (raw)
In-Reply-To: <5571E3EB.5070501@gmail.com>


> Собственно, пока отложил, т.к. визуально его логика работы правильна, а
> проверить на натуре- я с такой многозадачностью не справился. :-)
>

Исходный скрипт :

#!/bin/sh
 if [ -e ~/.ideskrc ]; then 
   idesk &
 else # first run
   startidesk &
 fi

Первый запуск, проверка наличия настроек, их нет, 
выполняется ветка else, то бишь запущен startidesk, 
он создаст нужные настройки и .... и всё, исходный скрипт автозапуска
idesk на этом закончится, т.е. сам idesk при первом входе в icewm
не будет запущен, только при последующих входах он 
будет стартовать, когда будет обнаруживать, что есть настройки.

Рабочий вариант :

#!/bin/sh
 if [ ! -e ~/.ideskrc ]; then 
    startidesk
 fi
 idesk &


Проверка настроек, если их нет - создать и только потом,
запуск самого idesk.


  reply	other threads:[~2015-06-06  8:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 16:12               ` Дмитрий Ханжин
2015-06-05 13:50                 ` Leo-sp50
2015-06-05 16:12                   ` Michael Shigorin
2015-06-05 16:33                     ` Leo-sp50
2015-06-05 18:01                       ` Дмитрий Ханжин
2015-06-06  8:07                         ` Leo-sp50 [this message]
2015-06-08  4:27               ` Дмитрий Ханжин
2015-06-08  7:13                 ` Michael Shigorin
2015-06-08 12:33                   ` Leo-sp50

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=7299731433578029@web25j.yandex.ru \
    --to=leo-sp50@ya.ru \
    --cc=devel-distro@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 Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/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-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

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


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