Active Topics

 



Notices


Reply
Thread Tools
Posts: 23 | Thanked: 5 times | Joined on Mar 2011 @ Philippines
#141
Originally Posted by thedead1440 View Post
doesn't work
+1
10chars
 
Posts: 835 | Thanked: 772 times | Joined on Oct 2007 @ Finland
#142
Originally Posted by coderus View Post
nice icons, Rio please, Kozzi!
Here you go

Code:
[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>
and I put this in /home/user/.local/share/applications/
trying to run without success, Terminal complains:
"Could not find 'cd /home/user/apkenv/ && ./apkenv /path/game.apk', starting '/bin/sh' instead.
Attached Images
  

Last edited by Kozzi; 2012-10-22 at 11:58.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#143
 
Posts: 23 | Thanked: 5 times | Joined on Mar 2011 @ Philippines
#144
Originally Posted by Schturman View Post
Ok, try to add "devel-su user -c"
Thanks Schturman, but it only ask me user password instead of root...
 
Posts: 23 | Thanked: 5 times | Joined on Mar 2011 @ Philippines
#145
Originally Posted by Kozzi View Post
Here you go

Code:
[Desktop Entry]
Type=Application
Name=<app name>
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e "cd /home/user/apkenv && ./apkenv <apk file>"
Icon=<path where your icon is>
and I put this in /home/user/.local/share/applications/
trying to run without success, Terminal complains:
"Could not find 'cd /home/user/apkenv/ && ./apkenv /path/game.apk', starting '/bin/sh' instead.
Thanks for your icons...
try to put it on /usr/share/applications/
here's what I have...

Code:
[Desktop Entry]
Type=Application
Name=Angry Birds Rio
Categories=Games;
Exec=/usr/bin/meego-terminal -n -e devel-su -c "cd /home/user/apkenv && ./apkenv abr.apk"
Icon=/home/user/apkenv/abr80.png
i put everything in /home/user/apkenv folder for simplicity...

Last edited by vicscraft; 2012-10-22 at 12:21.
 

The Following User Says Thank You to vicscraft For This Useful Post:
Posts: 951 | Thanked: 2,344 times | Joined on Jan 2012 @ UK
#146
 

The Following 2 Users Say Thank You to mariusmssj For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#147
Ok this variation:
I mean:
Code:
Exec=/usr/bin/meego-terminal -n -e devel-su user -c "cd /home/user/apkenv && ./apkenv <apk file>"
If still not work, try to create script
Code:
#!/bin/sh

cd /home/user/apkenv && ./apkenv <apk file>
And run it:
Code:
Exec=/usr/bin/meego-terminal -n -e devel-su user -c "/path/to/script.sh"
Or
Code:
Exec=/usr/bin/meego-terminal -n -e /path/to/script.sh
 

The Following User Says Thank You to Schturman For This Useful Post:
Posts: 835 | Thanked: 772 times | Joined on Oct 2007 @ Finland
#148
Got it to work with the shell trick:

/home/user/apkenv/run.sh
Code:
#!/bin/sh
cd /home/user/apkenv/

case "$1" in
'fruitninja')
./apkenv /home/user/MyDocs/Downloads/Fruit_Ninja_v.1.5.4.apk;;
'angrybirdsspace')
./apkenv /home/user/MyDocs/Downloads/Angry_Birds_Space_Premium_1.0.1.apk;;
esac
fruit_ninja.desktop:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.5.4
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh fruitninja
Name=Fruit Ninja
Icon=/home/user/apkenv/Icons/fn80.png
angry_birds_space.desktop
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0.1
Type=Application
Terminal=false
Exec=sh /home/user/apkenv/run.sh angrybirdsspace
Name=Angry Birds Space
Icon=/home/user/apkenv/Icons/abs80.png
place two desktop file into /usr/share/applications/
apk file to MyDocs/Downloads and now I can run them from homescreen without root access. My script didn't work before because I placed the desktop files into /home/user/.local/share/applications

Last edited by Kozzi; 2012-10-22 at 12:38.
 

The Following 3 Users Say Thank You to Kozzi For This Useful Post:
Posts: 26 | Thanked: 68 times | Joined on Jul 2012
#149
Thank guys !!
 
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#150
An solution to FRUIT NINJA segmentation error???
Pleaase
 
Reply

Tags
android, emu_layer, new_whazapp, orphanenv, sfdroid, thp ole ole ole, thp's up, y u disobey thp


 
Forum Jump


All times are GMT. The time now is 02:43.