kstart descrição detalhada

0

Estou tendo problemas para conseguir que o kstart funcione corretamente, por isso estou procurando uma descrição muito mais detalhada de seu comportamento do que o que posso obter em sua página de manual. Embora a página do manual descreva todos os parâmetros, tudo o que ela diz sobre seu funcionamento geral é "Utilitário para iniciar aplicativos com propriedades especiais da janela". Por exemplo, quando o shell de chamada recupera o controle - imediatamente ou depois que algumas outras ações são executadas? E se houver alguma diferença no comportamento entre kstart e kstart & ?

Eu quero usar kstart para iniciar o firefox, o konsole e o kmail nos desktops 1, 2 e 3 na inicialização. (Eu estou executando o Kubuntu 14.10.) Eu tentei incluir isso como um script de inicialização:

kstart --desktop 1 firefox
kstart --desktop 2 konsole
kstart --desktop 3 kmail

(Eu usei o System Setup / Autostart para instalá-lo.) O resultado foi que o meu sistema ficou solidamente. Então tentei isso:

#! /bin/sh
kstart --desktop 1 firefox &
kstart --desktop 2 konsole &
kstart --desktop 3 kmail &
exit

Eu tentei várias outras variações, a maioria das quais não foi interrompida, mas coloquei todos os três programas na mesma área de trabalho.

Como posso fazer com que o kstart se comporte?

    
por Paul A. 20.01.2015 / 20:11

1 resposta

0

Ampersand & amp;

Caracteres especiais: link

% bl0ck_qu0te%

kstart --help

O kstart tem a ajuda:

:~$ kstart --help
Usage: kstart [Qt-options] [KDE-options] [options] command 

Utility to launch applications with special window properties 
such as iconified, maximized, a certain virtual desktop, a special decoration
and so on.

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Arguments:
  command                   Command to execute

Options:
  --service <desktopfile>   Alternative to <command>: desktop file to start. D-Bus service will be printed to stdout
  --url <url>               Optional URL to pass <desktopfile>, when using --service
  --window <regexp>         A regular expression matching the window title
  --windowclass <class>     A string matching the window class (WM_CLASS property)
                            The window class can be found out by running
                            'xprop | grep WM_CLASS' and clicking on a window
                            (use either both parts separated by a space or only the right part).
                            NOTE: If you specify neither window title nor window class,
                            then the very first window to appear will be taken;
                            omitting both options is NOT recommended.
  --desktop <number>        Desktop on which to make the window appear
  --currentdesktop          Make the window appear on the desktop that was active
                            when starting the application
  --alldesktops             Make the window appear on all desktops
  --iconify                 Iconify the window
  --maximize                Maximize the window
  --maximize-vertically     Maximize the window vertically
  --maximize-horizontally   Maximize the window horizontally
  --fullscreen              Show window fullscreen
  --type <type>             The window type: Normal, Desktop, Dock, Toolbar, 
                            Menu, Dialog, TopMenu or Override
  --activate                Jump to the window even if it is started on a 
                            different virtual desktop
  --ontop, --keepabove      Try to keep the window above other windows
  --onbottom, --keepbelow   Try to keep the window below other windows
  --skiptaskbar             The window does not get an entry in the taskbar
  --skippager               The window does not get an entry on the pager

Mas, como observado no Bug 57575 - vários locais assíncronos "kstart --desktop" lançaram aplicativos em áreas de trabalho aleatórias: link ele deve dizer com mais clareza que a janela / windowclass não é opcional se houver mais de uma janela.

Isso está funcionando aqui:

#! /bin/sh
kstart --desktop 1 --windowclass Firefox firefox
kstart --desktop 2 --windowclass Konsole konsole
kstart --desktop 3 --windowclass Kmail kmail
    
por user26687 21.01.2015 / 19:45