Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-07-03 Thread Bogdan Cristea
On Monday 27 June 2011 22:08:09 you wrote:
 The synergy client (synergyc) can not be started from an init.d
 script, as this would not enable the client to connect to the X11
 session and do it's work.
 
 You need to make a desktop autostart file, and put it in
 ~/.config/autostart/. Something like this (adjust options
 appropriately for your systems) will work:
 
 $ cat ~/.config/autostart/synergy-client.desktop
 [Desktop Entry]
 Name=Synergy client
 Exec=synergyc -n client server.com --no-daemon
 X-MeeGo-Priority=Low
 X-MeeGo-Watchdog=Restart

Hi

I have used the following desktop file as you suggested:

[Desktop Entry]
Name=Synergy client
Exec=synergyc desktop
X-MeeGo-Priority=Low
X-MeeGo-Watchdog=Restart

where desktop is the alias of another PC registered in hosts file.
Everything works as expected. Thanks

-- 
Bogdan
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


[MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Bogdan Cristea
I would like to execute at startup a script allowing to launch synergy client. 
I have put this script in  /etc/init.d and made a soft link to the script in 
/etc/rc5.d, but the client is not running. What is the approach I need to 
follow in order to lauch a script at startup ?
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Leonardo Luiz Padovani da Mata
Hey Bogdan,  consider adding the script call on /etc/rc.local.

As i remember, the default runlevel for  MeeGo is 3, not 5, so adding
it to rc3.d might work also.
On our sollution the package containing the daemon creates a .desktop
on /etc/xdg/autostart with the commands that you wish to run on
openning the UX, but this is just a workaround since we don't want to
change the scripts.

The MeeGo daemons are started by /etc/rc.sysvinit

Notice that this is how the NETBOOK version work, please check if the
tablet is the same.



On Sun, Jun 26, 2011 at 11:44 AM, Bogdan Cristea crist...@gmail.com wrote:
 I would like to execute at startup a script allowing to launch synergy client.
 I have put this script in  /etc/init.d and made a soft link to the script in
 /etc/rc5.d, but the client is not running. What is the approach I need to
 follow in order to lauch a script at startup ?
 ___
 MeeGo-dev mailing list
 MeeGo-dev@meego.com
 http://lists.meego.com/listinfo/meego-dev
 http://wiki.meego.com/Mailing_list_guidelines




-- 
Leonardo Luiz Padovani da Mata

International Syst S/A
Metasys Tecnologia
Software Engineer Metasys MeeGo Team

leonar...@metasys.com.br
+55-31-3503-9040

May the force be with you, always
Nerd Pride... eu tenho. Voce tem?
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Kok, Auke-jan H
On Sun, Jun 26, 2011 at 7:44 AM, Bogdan Cristea crist...@gmail.com wrote:
 I would like to execute at startup a script allowing to launch synergy client.
 I have put this script in  /etc/init.d and made a soft link to the script in
 /etc/rc5.d, but the client is not running. What is the approach I need to
 follow in order to lauch a script at startup ?

The synergy client (synergyc) can not be started from an init.d
script, as this would not enable the client to connect to the X11
session and do it's work.

You need to make a desktop autostart file, and put it in
~/.config/autostart/. Something like this (adjust options
appropriately for your systems) will work:

$ cat ~/.config/autostart/synergy-client.desktop
[Desktop Entry]
Name=Synergy client
Exec=synergyc -n client server.com --no-daemon
X-MeeGo-Priority=Low
X-MeeGo-Watchdog=Restart

Auke
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Arjan van de Ven

On 6/26/2011 7:44 AM, Bogdan Cristea wrote:

I would like to execute at startup a script allowing to launch synergy client.
I have put this script in  /etc/init.d and made a soft link to the script in
/etc/rc5.d, but the client is not running. What is the approach I need to


this is very invalid and causes many problems!

you should be using chkconfig --add to register the service with the 
system (but the packaging is a bit complex, the fedora packaging 
guidelines are the best description of how to package a service with rpm 
that I've found)


but note that this runs your component as a root daemon.

if you want to run in the user session, you need to place a .desktop 
file in /etc/xdg/autostart



___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Arjan van de Ven

On 6/27/2011 1:02 PM, Leonardo Luiz Padovani da Mata wrote:

Hey Bogdan,  consider adding the script call on /etc/rc.local.

As i remember, the default runlevel for  MeeGo is 3, not 5, so adding
it to rc3.d might work also.
On our sollution the package containing the daemon creates a .desktop
on /etc/xdg/autostart with the commands that you wish to run on
openning the UX, but this is just a workaround since we don't want to


I'm sorry but your recommendation is even worse than the original 
thing... but they're both very very wrong.



___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Kok, Auke-jan H
On Mon, Jun 27, 2011 at 1:02 PM, Leonardo Luiz Padovani da Mata
leonar...@syst.com.br wrote:
 Hey Bogdan,  consider adding the script call on /etc/rc.local.

 As i remember, the default runlevel for  MeeGo is 3, not 5, so adding
 it to rc3.d might work also.

it is neither in trunk, and initscripts will not work from 1.3 on.
I've already explained why you can't have synergyc start in an init
script anyway.

Auke
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Leonardo Luiz Padovani da Mata

 you should be using chkconfig --add to register the service with the system
 (but the packaging is a bit complex, the fedora packaging guidelines are the
 best description of how to package a service with rpm that I've found)

Maybe we should define better the documentation. As you might see
users are confused on the correct behaviour they(we) should use on
adding services to MeeGo.


-- 
Leonardo Luiz Padovani da Mata

International Syst S/A
Metasys Tecnologia
Software Engineer Metasys MeeGo Team

leonar...@metasys.com.br
+55-31-3503-9040

May the force be with you, always
Nerd Pride... eu tenho. Voce tem?
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines


Re: [MeeGo-dev] Execute automatically a script at statup in meego-tablet-ia32-pinetrail-1.1.90.2.20110209.4

2011-06-27 Thread Kok, Auke-jan H
On Mon, Jun 27, 2011 at 1:43 PM, Leonardo Luiz Padovani da Mata
leonar...@syst.com.br wrote:
 it is neither in trunk, and initscripts will not work from 1.3 on.
 I've already explained why you can't have synergyc start in an init
 script anyway.

 Since it's 1.1.90.* should work with initscripts, right?

no

you can't start synergyc as initscript daemon, period. See my previous
post as to why this will not work.

Auke.
___
MeeGo-dev mailing list
MeeGo-dev@meego.com
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines