THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Doelle (doelle)
Attached to Project - awesome
Summary - overwriting DISPLAY variable
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - Operating System - All
Severity - High
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - Running awesome remotely, it fails to start any program.

Placing diagnostics in "uicb.c":

-- 8<---- snip ----
   if(!globalconf.screens_info->xinerama_is_active && (tmp = getenv("DISPLAY")))
   {
       display = a_strdup(tmp);
printf("display '%s'\n",display);
       if((tmp = strrchr(display, '.')))
           *tmp = '\0';
       snprintf(newdisplay, sizeof(newdisplay), "%s.%d", display, screen);
printf("newplay '%s'\n",newdisplay);
//      setenv("DISPLAY", newdisplay, 1);
   }
-- 8<---- snap ----

results in

-- 8<---- snip ----
[EMAIL PROTECTED]:/opt/awesome-2.3.4$ echo $DISPLAY
tec7.0.168.192.in-addr.arpa:0.0
[EMAIL PROTECTED]:/opt/awesome-2.3.4$ ./awesome
display 'tec7.0.168.192.in-addr.arpa:0'
newplay 'tec7.0.168.192.in-addr.0'
-- 8<---- snap ----

Note that `display' is already not identical with $DISPLAY.

In 'common/socket.c/socket_getaddr()':

-- 8<---- snip ----
   if(a_strlen(display))
   {
printf("%s(%d): `%s'\n",__FILE__,__LINE__,getenv("DISPLAY"));
       if((tmp = strchr(display, ':')))
           real_display = tmp + 1;
       else
           real_display = display;
       if((tmp = strrchr(display, '.')))
           *tmp = '\0';
printf("%s(%d): `%s'\n",__FILE__,__LINE__,getenv("DISPLAY"));
   }
-- 8<---- snap ----

-- 8<---- snip ----
common/socket.c(50): `tec7.0.168.192.in-addr.arpa:0.0'
common/socket.c(57): `tec7.0.168.192.in-addr.arpa:0'
-- 8<---- snap ----

My guess is, that the side effect there, i.e. clipping `getenv("DISPLAY")'
is unwanted (and plain evil if wanted) or at least unbalanced with the
operation of `uicb.c'.

Workaround: deactivate `setenv' in `uicb.c' as indicated above.

More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=318

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to