View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Xauthority and Wine ?
PostPosted: Fri Sep 01, 2006 1:54 am 
Offline
Joined: Thu Jun 23, 2005 1:20 am
Posts: 148
Hi all,

I have problem with Xauthority and Wine.
I want to launch Win32 application with Wine via cron.
Cron launching Wine launch it with bare environment.
I managed already to set proper environment for cron session.
One of needed environment variable is Xauthority
Unfortunately Xauthority variable is changing every boot - so I can't define statically it as simple EXPORT statement in may script.
So question is: how can I resolve this issue.
Should I disable xauth, or maybe .Xauthority files should be arranged in other way ?

Has anybody similar issue ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 7:03 am 
Offline
Joined: Tue Apr 13, 2004 6:51 pm
Posts: 890
Location: Groton, MA
After each boot, when the value is reset, is there a way to determine the value that you need for the XAUTH variable?

is it in a file? can it be determined progamatically? maybe when the mythtv user logs in following the boot, the value can be written to a file somewhere. Then your cron script can read file and set variable.

Not sure if that would work, of even makes sence, but it is a scripting way around the issue if you have access to the data

_________________
R5F1 - Dell P4 2.4Ghz 500MB - PVR250 x 2 - GeForce FX 5200 - Onboard sound/NIC 80GB ATA/250GB ATA/400GB SATA


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 9:23 am 
Offline
Joined: Mon Jun 21, 2004 5:28 am
Posts: 700
Location: Germany
I thought XAUTHORITY env variable pointed to the .Xauthority file and therefore should not change?

I haven't tried this, but I believe if you use the userID mythtv for the cron job (assuming the cron job is on same box as mythtv), connections to the display will be allowed. I.e. Same box and same userID is allowed to connect to X. Only if from different box and/or different userID is it blocked and xhost, xauth or ssh mechanism must be used.

Cheers,

Allen

_________________
ASUS AT3N7A-I (Atom 330)
TBS 8922 PCI (DVB-S2)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 10:30 am 
Offline
Joined: Thu Jun 23, 2005 1:20 am
Posts: 148
Of course connections will be allowed, but....
My understanding is following: application should know where .Xauthority file lays. Environment variable tell that. When You start xterm variables are set.
try "env" command.
Problem is that cron is launching bare session (without environment variables set). So before application start we have to set environment. All static variables we can set i.e. via scrip. But dynamic variables should be set in some other way.
I assume when I launch xterm, in some way variables are set before giving prompt. How it is done ?
Is there launched script or sort of program ?



alien wrote:
I thought XAUTHORITY env variable pointed to the .Xauthority file and therefore should not change?

I haven't tried this, but I believe if you use the userID mythtv for the cron job (assuming the cron job is on same box as mythtv), connections to the display will be allowed.
Allen


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu