Re: [E-devel] E CVS: apps/entrance raster
Enlightenment CVS wrote: > Enlightenment CVS committal > > Author : raster > Project : e17 > Module : apps/entrance > > Dir : e17/apps/entrance/src/client > > > Modified Files: > entrance_login.c entrance_session.c > > > Log Message: > > > moe loging - and ACTUALLY work. executing entrance_login via bin/sh loses > child process info etc thus waitpit() will never wait for the x session. exe > directly ith no shell in between - and now its all happy. > ahh... i c. Makes sense, I didn't even think of that, and that has been there for quite a while... funky bug. I'm going to device an elaborate plan to steal that UNIX programming book that devilhorns has been reading lately... I need it seriously, so i can be as bad-ass as our own raster :) > > } > +/* no need to free - we are goign to exec ourselves and be replaced > struct_passwd_free(pwent); > entrance_session_free(e); > if (shell) free(shell); > if (user) free(user); > + */ > oops... you're right there. > /* replace this process with a clean small one that just waits for its */ > /* child to exit.. passed on the cmd-line */ > > - execl("/bin/sh", "/bin/sh", "-l", "-c", buf, NULL); > + /* this causes entreance to reset - bad bad bad */ > + snprintf(pids, sizeof(pids), "%i", (int)pid); > + snprintf(buf, sizeof(buf), "%s/%s/entrance_login", PACKAGE_LIB_DIR, > PACKAGE); > +#ifdef HAVE_PAM > + if (e->config->auth == ENTRANCE_USE_PAM) > + { > + syslog(LOG_NOTICE, "Exec entrance login replacement: %s %s %s %s", buf, > pids, pwent->pw_name, e->display); > + execl(buf, buf, pids, pwent->pw_name, e->display, NULL); > + } > + else > +#endif > + { > + syslog(LOG_NOTICE, "Exec entrance login replacement: %s %s", buf, pids); > + execl(buf, buf, pids, NULL); > + } > + pause(); > if (buf) free(buf); > } > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] Cpufreq Module Clickies & Sourceforge Mail Sucks
On Thursday, 28 September 2006, at 00:52:44 (-0600), [EMAIL PROTECTED] wrote: > Okay, that's two different webmails sourceforge is stripping the > attachment from. So here it is inline. You probably had the MIME type wrong. It needs to be "text/plain". Michael -- Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <[EMAIL PROTECTED]> n + 1, Inc., http://www.nplus1.net/ Author, Eterm (www.eterm.org) --- "I guess the time is right for us to say we'll take our time and live our lives together day by day. We'll make a wish and send it on a prayer. We know our dreams will all come true with love that we can share." -- Firehouse, "Love of a Lifetime" - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] Cpufreq Module Clickies & Sourceforge Mail Sucks
On Thu, Sep 28, 2006 at 11:13:30AM -0400, Michael Jennings wrote: > On Thursday, 28 September 2006, at 00:52:44 (-0600), > [EMAIL PROTECTED] wrote: > > > Okay, that's two different webmails sourceforge is stripping the > > attachment from. So here it is inline. > > You probably had the MIME type wrong. It needs to be "text/plain". > > Michael > Unfortunately, from my available webmails, I can't choose what MIME type is being used, but I do remember it being set to something like text/x-diff. Oh well, it's all sorted now. Thanks anyway, metrics - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] entrance is now bloated.
On Wed, 27 Sep 2006 01:18:00 +0200 Morten Nilsen <[EMAIL PROTECTED]> babbled: > Carsten Haitzler (The Rasterman) wrote: > > OK - a quick check today: > > > > PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND > > 4183 root 15 0 79712 28m 5216 S0 2.9 0:35.94 Xorg > > 9385 raster15 0 106m 21m 11m S0 2.1 0:03.04 sylpheed > > 4189 root 16 0 65112 13m 3060 S0 1.3 0:04.72 entrance > > 4600 raster16 0 65112 11m 704 S0 1.1 0:00.00 entrance > > 4601 raster15 0 70988 9604 3984 S0 0.9 1:50.63 enlightenm > > 4168 root 16 0 41956 1248 860 S0 0.1 0:00.00 entranced > > should entrance_login be executing entrance? I thought it should just > execute the session? no it shouldnt - it should replace entrance once it has executed the session waiting for the user session to die - then cleanup > root 6761 0.0 0.0 6664 1392 tty1 SSep26 0:00 entranced > root 11893 5.1 0.8 20364 18364 ?S01:12 0:05 \_ > /usr/X11R6/bin/X -quiet -nolisten tcp -auth /var/:0.Xauth :0 > root 11896 0.6 0.0 2156 724 ?Ss 01:12 0:00 \_ > /usr/lib/entrance/entrance_login 11937 mortenn :0 > mortenn 11937 0.0 0.4 17140 9132 ?S01:12 0:00 \_ > /usr/bin/entrance -d :0 -z 6761 > > Oh, btw, my xmodmap is still not being installed at login, so it's > definitely still not executing the xinit stuff, like it used to do before. > > But with those last checkins, bloat does seem to have improved a bit.. > > -- > Cheers, > Morten > :wq > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Multithreaded Program - Problem with Evas - Refreshing a canvas
On Wed, 27 Sep 2006 12:00:02 +0200 "Seb Dev" <[EMAIL PROTECTED]> babbled: > Hello list, EFL is not threadsafe. you cannto use ecore, evas, imlib2, etc. across multiple threads. > I develop a multi-threaded program. > One thread receives some bitmaps (saved in BUFFER_FILE file) and send an > ecore_event. > > imlib_save_image(TEMP_BUFFER_FILE); > > *//Envoi signal pour rafraichir la fenetre evas* > event = ecore_event_add(MY_EVENT_TYPE, toto, NULL, NULL); > *if*(!event){exit(0);} > > > This event is handled by the second thread in order to display them on a > evas canvas (which is defined in the second thread). > > *//Handler creation* > MY_EVENT_TYPE = ecore_event_type_new(); > handler = ecore_event_handler_add(MY_EVENT_TYPE, callback_resfresh, NULL); > *if*(!handler){exit(0);} > > > int callback_resfresh(void *data, int type, void *ev) > { > refresh(); > *return* 1; > } > > > Here is below the function for refreshing the canvas (function defined in > the second thread) : > > void refresh(void) > { >*if*(tmp){evas_object_del(tmp);} >tmp = evas_object_image_add(evas); > >evas_image_cache_flush(evas); >evas_image_cache_reload (evas); > >evas_object_image_file_set(tmp, TEMP_BUFFER_FILE, NULL); >evas_object_move(tmp, 0, 0); >evas_object_resize(tmp, win_w, win_h); >evas_object_image_fill_set(tmp, 0, 0, win_w, win_h); >evas_object_layer_set(tmp,50); > >evas_object_show(tmp); >*//evas_render(evas);* > } > > > My problem : the canvas is refreshed only when the mouse is focused and > moving on the canvas and I don't understand why. > > > If some of you have an idea to solve this problem, thanks a lot for your > response. > > Seb Dev > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E CVS: apps/entrance raster
On Thu, 28 Sep 2006 10:47:05 +0100 Essien Ita Essien <[EMAIL PROTECTED]> babbled: > Enlightenment CVS wrote: > > Enlightenment CVS committal > > > > Author : raster > > Project : e17 > > Module : apps/entrance > > > > Dir : e17/apps/entrance/src/client > > > > > > Modified Files: > > entrance_login.c entrance_session.c > > > > > > Log Message: > > > > > > moe loging - and ACTUALLY work. executing entrance_login via bin/sh loses > > child process info etc thus waitpit() will never wait for the x session. exe > > directly ith no shell in between - and now its all happy. > > > ahh... i c. > > Makes sense, I didn't even think of that, and that has been there for > quite a while... funky bug. > > I'm going to device an elaborate plan to steal that UNIX programming > book that devilhorns has been reading lately... I need it seriously, so > i can be as bad-ass as our own raster :) actually - i didn't know that the shell stripped out child process info so that waitpid() failed as it could find no child processes - not until this bug hit :) well ok - it does that here on ubuntu (and ubuntu uses dash as /bin/sh not bash so it's different and dash is a lot more stripped down) > > > > > } > > +/* no need to free - we are goign to exec ourselves and be replaced > > struct_passwd_free(pwent); > > entrance_session_free(e); > > if (shell) free(shell); > > if (user) free(user); > > + */ > > > oops... you're right there. > > /* replace this process with a clean small one that just waits for its > > */ /* child to exit.. passed on the cmd-line */ > > > > - execl("/bin/sh", "/bin/sh", "-l", "-c", buf, NULL); > > + /* this causes entreance to reset - bad bad bad */ > > + snprintf(pids, sizeof(pids), "%i", (int)pid); > > + snprintf(buf, sizeof(buf), "%s/%s/entrance_login", PACKAGE_LIB_DIR, > > PACKAGE); +#ifdef HAVE_PAM > > + if (e->config->auth == ENTRANCE_USE_PAM) > > + { > > + syslog(LOG_NOTICE, "Exec entrance login replacement: %s %s %s %s", > > buf, pids, pwent->pw_name, e->display); > > + execl(buf, buf, pids, pwent->pw_name, e->display, NULL); > > + } > > + else > > +#endif > > + { > > + syslog(LOG_NOTICE, "Exec entrance login replacement: %s %s", buf, > > pids); > > + execl(buf, buf, pids, NULL); > > + } > > + pause(); > > if (buf) free(buf); > > } > > > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] keybinding bug
On Wed, 27 Sep 2006 14:01:23 +1200 Jochen Schroeder <[EMAIL PROTECTED]> babbled: > Hi guys, > > I just noticed a small bug with the keybindings. I can't set keybindings > for moving windows to a different desktop. Well I can set the bindings > but they don't work. From what I understand in the source code, this is > because window_desk_move_to expects 2 parameters but only one is given. > I really don't know if my c knowledge is good enough to create a patch, > I also don't really know what the correct way of doing this would be > (create a function similar to desk_linear_flip_to?) you will need to give it 2 params :( there is no linear version atm. > Cheers > Jochen > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- - Codito, ergo sum - "I code, therefore I am" -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] keybinding bug
Darn it reply instead of reply to list sorry for the duplicate mail Carsten. Carsten Haitzler (The Rasterman) wrote: > On Wed, 27 Sep 2006 14:01:23 +1200 Jochen Schroeder > <[EMAIL PROTECTED]> babbled: > > >> Hi guys, >> >> I just noticed a small bug with the keybindings. I can't set keybindings >> for moving windows to a different desktop. Well I can set the bindings >> but they don't work. From what I understand in the source code, this is >> because window_desk_move_to expects 2 parameters but only one is given. >> I really don't know if my c knowledge is good enough to create a patch, >> I also don't really know what the correct way of doing this would be >> (create a function similar to desk_linear_flip_to?) >> > > you will need to give it 2 params :( there is no linear version atm. > Yeah I know however in the configuration dialog it only has one parameter, and one cannot change it. Well I just go with using enlightenment_remote, just wanted to let you guys know. Cheers Jochen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel