Unofficial Austrumi Linux for English users forum golf & dvd

A Latvian and english Linux tiny operating system. used by golf & dvd lovers

You are not logged in.

Adverts

Adverts

#1 2012-02-27 23:53:33

Steve92_
Guest

How to automatically start an application ?

Hi !

It can be useful to automatically start an application just after Austrumi is up, for example set keyboard for your language and start  a browser.

It has to be done at FVWM level, the Windows Manager of Austrumi (tested with 2.4.5 release).

Right click anywhere on wallpaper and choose "FVWM configs/Edit fvwm2rc"
=> system.fvwm2rc settings file is opened in Geany editor.

At the end of 'fvwm2rc' file, add these lines:
(assumed french keyboard and Firefox installed under /root/firefox directory)
-----
...
AddToFunc InitFunction
+ I Exec exec /usr/bin/setxkbmap -layout fr
+ I Exec exec /root/firefox/firefox
-----

When you quit Austrumi, don't forget to select "Save&Exit" to keep the modifications if you boot from a pendrive.
Be patient ! It can take more more than 15 minutes on a slow computer (netbook, old laptop...).

I hope it can help !

The next step is to automatically open Firefox in full screen mode... quite tricky ! ;)
Any idea ?

Regards,

Steve.

Last edited by Steve92_ (2012-02-28 23:15:42)

 

2012-02-27 23:53:33

AdBot
Advertisements

#2 2012-02-28 11:30:21

atang1
Administrator
Registered: 2006-03-30
Posts: 2705

Re: How to automatically start an application ?

You can not do French keyboard in window manager and expect it in firefox.

Languages in Austrumi is set in file system of each language; you switch file system names. We have gone thru the process of adding greek language in Austrumi v1.10. You use the Russian language file system(installed by brin) and convert the gui to French. You also change the keyboardmap. The file names in the Russian version is change to french version in french file system.

You might still be able to find the greek Austrumi change process on the internet if the info on that lost forum had a copy in Yahoo, MSN or google search engine.

Offline

 

#3 2012-02-28 23:21:09

atang1
Administrator
Registered: 2006-03-30
Posts: 2705

Re: How to automatically start an application ?

In Austrumi v2.4.5 built in lang=fr is a language that you can switch in cheat codes; or country flags in menu on desktop.

It now has 10 or 11 languages from five, available years ago.

You don't need commandline input.

Offline

 

#4 2012-02-29 13:58:24

Steve92_
Guest

Re: How to automatically start an application ?

Hi!

Yes, cheat code lang_xx in syslinux.cfg to set language in menus of Austrumi at boot time is very useful ! You don't need to click on flags in GUI "Istatiejumi" menu once Austrumi started. :)

As reminder for newcomers, xx can take all these values to set language in menus, :

el: Greek
en: English
es: Spanish
fr: French
hu: Hungarian
it: Italian
lv: Latvian
ltg Latgalian
pt_br: brazilian Portuguese
ru: Russian
uk: Ukrainian


But, you do need a command line in system.fvwm2rc to automatically change keyboard layout.

Layout is not saved with "Save&Exit" option when stopping Austrurmi.
That's what I met on my netbook with Austrumi 2.4.5 live USB.

...or perhaps I missed something ?
Is there another solution ?

Regards,

Steve.

Last edited by Steve92_ (2012-02-29 14:47:38)

 

#5 2012-02-29 14:56:41

atang1
Administrator
Registered: 2006-03-30
Posts: 2705

Re: How to automatically start an application ?

When you switch flags in the menu, you notice the operating changes over to a different file system and loses all the data of the first language. The second language data then is stored in its file system. The keyboardmap of the second language changes when file system is changed, you don't have to do anything.

Offline

 

#6 2012-02-29 19:51:41

Steve92_
Guest

Re: How to automatically start an application ?

Hi Antag1 !

I can promise you that language in menus and keyboard layout are two different things in my configuration:

- Austrumi 2.4.5 (and all releases I've tested)
- booting from SDHC 16GB card with these lines in syslinux.cfg

Code:

KERNEL /austrumi/bzImage
APPEND initrd=/austrumi/initrd.gz dousb lang_fr

or
- booting from ISO image in a virtual machine (VMWare Player 3.1.4)

When I use the cheat code lang_fr or click on french flag, I get menus in french but then I have to set keyboard layout too.

Where do you boot Austrumi from ? A hard drive ?

Regards,

Steve.

 

#7 2012-02-29 20:13:29

atang1
Administrator
Registered: 2006-03-30
Posts: 2705

Re: How to automatically start an application ?

I use livecd and never had to change keyboardmap switching from russian to english.

Austrumi switches file system and keyboardmap as well in the file system. Then you use alt-shift to switch keyboard.

Offline

 

Adverts

Board footer

Powered by FluxBB
Hosted by PunBB-Hosting