![]() |
[Help needed with porting] Applauncherd port for Fremantle - launch apps faster and more economically
Hi,
I'd like to announce that I ported applauncherd to Maemo Fremantle. It's available in extras-devel, I hope it'll work smoothly. Applauncherd port is a part of MeeCoLay project. Download: Code:
sudo gainroot Thanks to:
Source is available here: https://meego.gitorious.org/~marmist...o-applauncherd Why do we need it? We have limited RAM in Fremantle, and applauncherd saves it - shares the libraries between apps. |
[Help needed with porting] Applauncherd port for Fremantle - launch apps faster and more economically
I uploaded version 3.0.3-maemo1. This installs cleanly but there's a runtime error:
Code:
invoker: error: Failed to initiate connect on the socket. Code:
// Inits a socket connection for the given application type |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
Also, are you sure that the listening sockets have been created? Also, instead of just saying if(connect(...) < 0) printf("error") use the perror() function, so that you get the exact reason why connect() failed. $ man 2 connect Code:
The following are general socket errors only. There may be other domain-specific error codes. |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
I'll try it out. May optifying be the problem with connect? |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
What values do all those INVOKER_*_SOCK variables (or #defines, whatever they are) have? Do the sockets actually exist where they are expected to exist? But again, your best friends are, at the moment, errno and perror(). They will tell you all you need to know. |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
The whole port's source is in this repo. To be honest, I'm kinda new to all these sockets stuff. Do you know some nice article or something about it? I'll first try removing optify. |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
I just noticed that files in /tmp (INVOKER_*_SOCK) - as it's -
Code:
#define INVOKER_M_SOCK "/tmp/boostm" |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
A unix socket is an example of that. It looks like a file you can open, read and write to, but it is not a file. So touch'ing it makes no sense. touch will create a (real) file of zero size. Presumably you'd need to run the program that actually creates those sockets and listens (binds) on them. I don't know what applauncher does, nor do I care. I suspect it's one of those over-complicated "abstraction layers" that supposedly bring nice effects (splash screen? single instance? what has happend to Linux?!) where actually they only make everything more complicated to understand as well as contributing to the dependency hell we're living in. If you really want to port applauncher to Fremantle I'd recommend that you debug your program using the perror() function. Really, it's the best thing you can do at the moment to diagnose the situation. If Harmattan programs actually *require* this contraption, I would recommend you make a dummy/fake applauncherd so that programs can be run like normal programs. Then the user would be able to install the real "thing" or the fake one (hint: "provides", "conflicts", since we're playing the debian game). Good luck anyway! |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
Quote:
Sudo'ing single-instance causes no probems. The app does load faster. I'll look at perroring for invoker, but as for now, is there any way to add more privileges to applauncherd? |
Re: [Announce] [Beta] Applauncher port for Fremantle - launch apps faster and more economically
OK, I've got some progress!
I've got a new built, totally without platform security. segfaults but later. The log is: Code:
invoker: Invoking execution: '/opt/SzybkiDemot/bin/SzybkiDemot' Code:
Running non-meego graphics system enabled MeeGo touch, forcing native graphicssystem download: http://marmistrz.net63.net/public/applauncherd/ /edit: You can install the test packages and try out /usr/share/applauncherd-tests/* Don't mind the broken deps. |
All times are GMT. The time now is 01:11. |
vBulletin® Version 3.8.8