Standalone apps on Pi

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

vascoribeiro
Posts: 33
Joined: Tue Apr 25, 2017 8:13 pm

Re: Standalone apps on Pi

Post by vascoribeiro » Fri Dec 28, 2018 1:08 am

Oh sorry, I didn't mean to bother you with work!
Thank you so much, if I find out something new I'll post it here.
Happy new year. ;)

vascoribeiro
Posts: 33
Joined: Tue Apr 25, 2017 8:13 pm

Re: Standalone apps on Pi

Post by vascoribeiro » Fri Dec 28, 2018 1:15 am

Bah, this was a fast one... I remembered that I would need something to run it... sudo...

so, the command
sudo ./APPNAME

just run the god damn Hello World test.

I'll try it now with my app and with the app from the other topic https://forums.livecode.com/viewtopic.php?f=76&t=31961

Thank you very much and sorry for the trouble!

For the prosperity and for noobs like me :lol: :

In RPi systems:

Save as standalone in ARMv6-HF
then just cd to the directory where the app is and sudo ./app_name

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2029
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Standalone apps on Pi

Post by [-hh] » Fri Dec 28, 2018 3:31 am

Interesting, I never needed sudo to start a standalone.
Did you install the IDE "for all users" or "for you only"?
shiftLock happens

bogs
Posts: 3466
Joined: Sat Feb 25, 2017 10:45 pm

Re: Standalone apps on Pi

Post by bogs » Fri Dec 28, 2018 2:03 pm

I don't have a Pi, as I've mentioned elsewhere, but that would be unusual behavior on any operating system I've used Lc on before.

In the first instance (installing for everyone), *usually* the only time you would need sudo is during the install itself. Once installed, as far as I can tell, the IDE creates everything in user space, i.e. stacks, standalones, etc.

If it doesn't work this way on Pi, that would be interesting to find out indeed.

*Edit - I went back and read the first few posts again.
What about standalones created on Mac or PC for Linux. Will they run on Pi? That would be my main interest, to develop on those platforms and run apps on the Pi.
In that case, yes, sudo could be required if you don't set permissions of the file after bringing it to the Pi.

*Edit - I forgot to mention that you can (*should be able) do this from the command line on the Pi device by typing in

Code: Select all

sudo chown myuser myfile
where 'myuser' is your user name on the system, and 'myfile' is the file you want to set permission on.

If you want to set the files in a directory to your user, you would change that to point to the folder and use -R to recursively set the files and folders underneath it, like this

Code: Select all

sudo chown -R myuser myfolder/*
After doing so, you shouldn't need to use sudo to launch any of the files.
Image

vascoribeiro
Posts: 33
Joined: Tue Apr 25, 2017 8:13 pm

Re: Standalone apps on Pi

Post by vascoribeiro » Fri Dec 28, 2018 9:51 pm

[-hh] wrote:
Fri Dec 28, 2018 3:31 am
Interesting, I never needed sudo to start a standalone.
Did you install the IDE "for all users" or "for you only"?
I just defined the permissions for all users... strangely only worked with "sudo chmod" :lol: , but still everything works exactly the same way.
Its a mystery that one day (when I'm a little more experience) I will solve... I hope...

Post Reply

Return to “Raspberry Pi”