View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#9
Originally Posted by reinob View Post
I don't know what exactly you're trying to do. The nice thing about Unix and derivatives (Linux) is that (almost) everything is represented as a "file", even though some things are not files in the common sense of the word.

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!
I guess I know what's the problem. I read somewhere that applauncherd is run as a privileged process. So I guess, that applauncherd would like to create sockets but can't.

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?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following 2 Users Say Thank You to marmistrz For This Useful Post: