Reply
Thread Tools
Posts: 31 | Thanked: 44 times | Joined on Nov 2009 @ Czech Republic
#1
Hello,
I have successfully created deb package for my application and installed it using dpkg. The application icon appeared in launcher but i cannot launch it.

Code:
/usr/bin # ls -l myapp 
-rwxr-xr-x 1 root root 52 Feb 3 22:40 myapp 

/usr/bin # ./myapp 
/bin/sh: ./myapp: not found 

/usr/bin # myapp 
/bin/sh: myapp: not found 

/usr/bin # cat myapp 
#!/bin/sh 
exec python2.5 -O /opt/myapp/myapp.py $
Code:
[Desktop Entry]
..
Name=myapp
Exec=/usr/bin/myapp
Icon=myapp
...
Is there anything I forgot?
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
chmod +x /usr/bin/myapp?

On a sidenote, a script isn't really needed to start a Python script from a desktop file...

EDIT: Your first post says it is already exec...

Last edited by qwerty12; 2010-02-03 at 23:22.
 
Posts: 31 | Thanked: 44 times | Joined on Nov 2009 @ Czech Republic
#3
I set the execution permission but it doesn't seem to help. Same approach works for me on desktop (Ubuntu) for both shell and python files but someway I'm not able to do that in Maemo (in any location - outside VFAT of course).

Ohh... This is it...
Another common problem is scripts containing a DOS newline immediately after the shebang

Last edited by moneytoo; 2010-02-03 at 23:23.
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:26.