You are not logged in.

#1 2013-04-29 22:16:56

ov-ov
Member
Registered: 2013-04-29
Posts: 3

xinit неверно запускает twm

Ввожу xinit - отображается неподвижное окно xterm без заголовка, правда рабочее, меню не выводится. Ввожу startx - всё идельно, как прописано в xinitrc: три окна терминала и часы, окна перемещаемые, с заголовком, меню тоже работает. Чего не хватает xinit-у?

I enter "xinit" - the motionless window xterm without heading is displayed, the truth working, the menu is not deduced. I enter "startx" - all ideally as it is registered in xinitrc: three windows of the terminal and hours, windows moved, with heading, the menu too works. That does not suffice xinit?

Last edited by ov-ov (2013-04-30 00:18:05)

Offline

#2 2013-04-29 22:37:53

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: xinit неверно запускает twm

please do not post any language other than english in the main forums. There is an Other Languages forum just for that. Moving....


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-29 23:33:39

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,203

Re: xinit неверно запускает twm

Based on the translation from Russian, courtesy of Google translate:

I suspect you do not have a ~/.xixitrc, so the system is using the default /etc/X11/xinit/xinitrc.  That opens three xterm windows, and a clock under the twm window manager.

You need to create your own ~/.xinitrc to start the environment of your choice.  See https://wiki.archlinux.org/index.php/Startx


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2013-04-30 00:02:19

ov-ov
Member
Registered: 2013-04-29
Posts: 3

Re: xinit неверно запускает twm

Я согласен, пусть по умолчанию X читает /etc/X11/xinit/xinitrc и запускает twm  = 3 терминала + часы. Но почему команда "startx" делает это идеально, а "xinit" неверно?
I agree, let by default X reads /etc/X11/xinit/xinitrc and starts twm = 3 terminals + hours. But why the command "startx" does it ideally, and "xinit" it is incorrect?

Offline

#5 2013-04-30 00:21:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,203

Re: xinit неверно запускает twm

That translated as

I agree, let the default X reads / etc/X11/xinit/xinitrc and runs twm = Terminal 3 + hours. But why "startx" command makes it an ideal and "xinit" false?
I agree, let by default X reads / etc/X11/xinit/xinitrc and starts twm = 3 terminals + hours. But why the command "startx" does it ideally, and "xinit" it is incorrect?

I am sorry, I cannot parse that.

I think you are asking why startx and xinit have different behavior.  I know that startx is a user friendly front end to xinit.  I cannot help with the details.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2013-05-02 17:05:14

alexanderthegre
Member
Registered: 2012-07-29
Posts: 66

Re: xinit неверно запускает twm

ewaller wrote:

That translated as

I agree, let the default X reads / etc/X11/xinit/xinitrc and runs twm = Terminal 3 + hours. But why "startx" command makes it an ideal and "xinit" false?
I agree, let by default X reads / etc/X11/xinit/xinitrc and starts twm = 3 terminals + hours. But why the command "startx" does it ideally, and "xinit" it is incorrect?

I am sorry, I cannot parse that.

I think you are asking why startx and xinit have different behavior.  I know that startx is a user friendly front end to xinit.  I cannot help with the details.

Google translate's russian is very bad. The word that is translated as "hours" also means "clock", and the word translated as "ideally" could also mean "correctly".
Thus, he wants to know why 'xinit' doesn't read his .xinitrc.

@OP:
xinit некогда не читат вашу .xinitrc, а startx читат.

xinit never reads your .xinitrc, while startx does.

Offline

#7 2013-05-03 02:15:04

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 263

Re: xinit неверно запускает twm

ov-ov wrote:

Ввожу xinit - отображается неподвижное окно xterm без заголовка, правда рабочее, меню не выводится. Ввожу startx - всё идельно, как прописано в xinitrc: три окна терминала и часы, окна перемещаемые, с заголовком, меню тоже работает. Чего не хватает xinit-у?

Это документированное поведение. Согласно man xinit:

If no specific client program is given on the command line, xinit will look for a file in the user's home directory called .xinitrc to run as  a shell script to start up client programs.  If no such file exists, xinit will use the following as a default:
            xterm  -geometry  +1+1  -n  login  -display  :0

То есть xinit умеет читать только пользовательский .xinitrc, а о системном /etc/X11/xinit/xinitrc ничего не знает.

Если зачем-то нужно запустить системный xinitrc именно с помощью xinit, укажи его явно:

$ xinit /etc/X11/xinit/xinitrc

Offline

Board footer

Powered by FluxBB