Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/etc/X11/Xsession.d

278 views
Skip to first unread message

T o n g

unread,
Jan 27, 2011, 11:00:01 PM1/27/11
to
Hi,

Anywhere I can read more about /etc/X11/Xsession.d?

I want to use it to start an app when X starts, synergyc to be exact,
following the steps from
http://tacticalcoder.com/blog/2009/05/using-synergy-software-kvm-with-osx-
and-linux/

"The ubuntu community documentation has instructions on setting up the
client to automatically start. They can be found here. In a nutshell you
make a script. . . Name this script 12synergy and make it executable.
Place this script in the /etc/X11/Xsession.d folder. This causes Synergy
to start as root when the computer boots."

This just doesn't work for me. No synergyc in ps when X (re)starts.

Is there any way that I can troubleshoot this?

Thanks

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/ihteuo$ri1$1...@dough.gmane.org

Chris Jones

unread,
Jan 27, 2011, 11:40:03 PM1/27/11
to
On Thu, Jan 27, 2011 at 10:59:21PM EST, T o n g wrote:
> Hi,
>
> Anywhere I can read more about /etc/X11/Xsession.d?
>
> I want to use it to start an app when X starts, synergyc to be exact,
> following the steps from
> http://tacticalcoder.com/blog/2009/05/using-synergy-software-kvm-with-osx-
> and-linux/
>
> "The ubuntu community documentation has instructions on setting up the
> client to automatically start. They can be found here. In a nutshell you
> make a script. . . Name this script 12synergy and make it executable.
> Place this script in the /etc/X11/Xsession.d folder. This causes Synergy
> to start as root when the computer boots."
>
> This just doesn't work for me. No synergyc in ps when X (re)starts.
>
> Is there any way that I can troubleshoot this?

Maybe look in ~/.xsessions-errors.

If that doesn't help, you could run your script manually from an XTerm
and see if you get any error messages..?

cj


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2011012804...@pavo.local

T o n g

unread,
Jan 28, 2011, 12:30:01 AM1/28/11
to

On Thu, 27 Jan 2011 23:35:31 -0500, Chris Jones wrote:

>> Place this script in the /etc/X11/Xsession.d folder. This causes
>> Synergy to start as root when the computer boots."
>>
>> This just doesn't work for me. No synergyc in ps when X (re)starts.
>>
>> Is there any way that I can troubleshoot this?
>
> Maybe look in ~/.xsessions-errors.

~/.xsessions-errors is for a certain user, I am talking about starting an
app when X starts, even before a user logs in.

> If that doesn't help, you could run your script manually from an XTerm
> and see if you get any error messages..?

Forgot to stress that the script works just fine.

Thanks all the same for your help,

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ihtjlh$3jp$1...@dough.gmane.org

Liam O'Toole

unread,
Jan 28, 2011, 5:50:01 AM1/28/11
to
On 2011-01-28, T o n g <mlist4...@yahoo.com> wrote:
>
> On Thu, 27 Jan 2011 23:35:31 -0500, Chris Jones wrote:
>
>>> Place this script in the /etc/X11/Xsession.d folder. This causes
>>> Synergy to start as root when the computer boots."
>>>
>>> This just doesn't work for me. No synergyc in ps when X (re)starts.
>>>
>>> Is there any way that I can troubleshoot this?
>>
>> Maybe look in ~/.xsessions-errors.
>
> ~/.xsessions-errors is for a certain user, I am talking about starting an
> app when X starts, even before a user logs in.
>
>> If that doesn't help, you could run your script manually from an XTerm
>> and see if you get any error messages..?
>
> Forgot to stress that the script works just fine.

The scripts in /etc/X11/Xsession.d/ are sourced by Xsession, not
executed. Try sourcing your script from another file and see if it still
works.

--
Liam O'Toole
Cork, Ireland

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/slrnik57l1.4ac...@dipsy.tubbynet

T o n g

unread,
Jan 28, 2011, 10:30:02 AM1/28/11
to
On Fri, 28 Jan 2011 10:46:57 +0000, Liam O'Toole wrote:

>> Forgot to stress that the script works just fine.
>
> The scripts in /etc/X11/Xsession.d/ are sourced by Xsession, not
> executed. Try sourcing your script from another file and see if it still
> works.

Thanks for the reply.
Yes, it still works. What else can I troubleshoot this?

Thanks

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ihun94$p0t$1...@dough.gmane.org

T o n g

unread,
Jan 28, 2011, 10:50:02 AM1/28/11
to
On Fri, 28 Jan 2011 15:27:32 +0000, T o n g wrote:

>>> Forgot to stress that the script works just fine.
>>
>> The scripts in /etc/X11/Xsession.d/ are sourced by Xsession, not
>> executed. Try sourcing your script from another file and see if it
>> still works.
>
> Thanks for the reply.
> Yes, it still works. What else can I troubleshoot this?

Just realized that it's more a gdm issue than a /etc/X11/Xsession.d/
issue, because further troubleshooting reveals that none of the files
under /etc/X11/Xsession.d/ are executed when gdm starts X.

Is it so? Can somebody confirm this?

What should I do to start an app when X starts, which is started by gdm,
even before a user logs in?

thanks


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ihuo8s$p0t$2...@dough.gmane.org

Wayne Topa

unread,
Jan 28, 2011, 12:20:02 PM1/28/11
to
On 01/27/2011 10:59 PM, T o n g wrote:
> Hi,
>
> Anywhere I can read more about /etc/X11/Xsession.d?
>
> I want to use it to start an app when X starts, synergyc to be exact,
> following the steps from
> http://tacticalcoder.com/blog/2009/05/using-synergy-software-kvm-with-osx-
> and-linux/
>
> "The ubuntu community documentation has instructions on setting up the
> client to automatically start. They can be found here. In a nutshell you
> make a script. . . Name this script 12synergy and make it executable.
> Place this script in the /etc/X11/Xsession.d folder. This causes Synergy
> to start as root when the computer boots."
>
> This just doesn't work for me. No synergyc in ps when X (re)starts.

I don't use ubuntu. In debian, for years now, anything I want to have
start up in X I put in .xinitrc like this....

synergys --config ~/.synergy.conf --restart &
iceweasel &
icedove &
conky &

Note: I start x with startx, and use fluxbox WM.

HTH

WT


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4D42F909...@gmail.com

Rob Owens

unread,
Jan 28, 2011, 12:30:01 PM1/28/11
to
On Fri, Jan 28, 2011 at 03:44:29PM +0000, T o n g wrote:
> On Fri, 28 Jan 2011 15:27:32 +0000, T o n g wrote:
>
> >>> Forgot to stress that the script works just fine.
> >>
> >> The scripts in /etc/X11/Xsession.d/ are sourced by Xsession, not
> >> executed. Try sourcing your script from another file and see if it
> >> still works.
> >
> > Thanks for the reply.
> > Yes, it still works. What else can I troubleshoot this?
>
> Just realized that it's more a gdm issue than a /etc/X11/Xsession.d/
> issue, because further troubleshooting reveals that none of the files
> under /etc/X11/Xsession.d/ are executed when gdm starts X.
>
> Is it so? Can somebody confirm this?
>
> What should I do to start an app when X starts, which is started by gdm,
> even before a user logs in?
>
I'm not sure if this helps, but there is /etc/gdm/PreSession.
Presumably you can also have a user-specific version of this file.

-Rob


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2011012817...@aurora.owens.net

T o n g

unread,
Jan 28, 2011, 1:00:02 PM1/28/11
to
On Fri, 28 Jan 2011 12:12:41 -0500, Wayne Topa wrote:

> Note: I start x with startx, and use fluxbox WM.

Me too.

> In debian, for years now, anything I want to have start up in X I put in
> .xinitrc like this....
>
> synergys --config ~/.synergy.conf --restart &

> . . .

what if you want the synergy to control another machine? I.e., how do you
setup the client side?

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ihuvs8$p0t$3...@dough.gmane.org

Wayne Topa

unread,
Jan 28, 2011, 2:20:02 PM1/28/11
to
On 01/28/2011 12:54 PM, T o n g wrote:
> On Fri, 28 Jan 2011 12:12:41 -0500, Wayne Topa wrote:
>
>> Note: I start x with startx, and use fluxbox WM.
>
> Me too.
>
>> In debian, for years now, anything I want to have start up in X I put in
>> .xinitrc like this....
>>
>> synergys --config ~/.synergy.conf --restart&
>> . . .
>
> what if you want the synergy to control another machine? I.e., how do you
> setup the client side?
>

I used it to control a PIC Programmer on a XP laptop. I had the laptop
start synergy on turn on.

I never used it linux to linux but would do it the same way. IIRC I
googled synergy and picked up examples from there.

Wayne


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4D4314BE...@gmail.com

Camaleón

unread,
Jan 29, 2011, 10:50:02 AM1/29/11
to
On Fri, 28 Jan 2011 03:59:21 +0000, T o n g wrote:

> Anywhere I can read more about /etc/X11/Xsession.d?
>
> I want to use it to start an app when X starts, synergyc to be exact,

(...)

There is a doc on how to do this, but not sure if that will help:

http://synergy2.sourceforge.net/autostart.html

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/pan.2011.01...@gmail.com

T o n g

unread,
Jan 30, 2011, 6:00:01 PM1/30/11
to
On Sat, 29 Jan 2011 15:41:23 +0000, Camaleón wrote:

>> I want to use it to start an app when X starts, synergyc to be exact,
> (...)
>
> There is a doc on how to do this, but not sure if that will help:
>
> http://synergy2.sourceforge.net/autostart.html

Thanks Camaleón.

Been there, read that.

However, the offical how-to need us to hack into offical display
manager's start up files. I thought this was bad, because when the
display manager is updated, all your hacking is lost.

So I asked myself, "is there any better places, universal to all 3
display managers and doesn't need to hack into exiting official code"?

First thing I thought of is the .desktop files that freedesktop.org has
specified as the standard method of how the applications should be
started when you start a X session. . .

Read more of my adventure if you are interested, at
http://sfxpt.wordpress.com/2011/01/30/start-synergy-automatically-when-x-
starts/

cheers

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ii4q1s$ap8$1...@dough.gmane.org

0 new messages