librelist archives

« back to archive

Please Help me! Problem with shoes executable in linux

Please Help me! Problem with shoes executable in linux

From:
Harsh Trivedi
Date:
2014-08-13 @ 14:57
Hello,
           I am a ruby on rails / ruby developer. I just started learning
Shoes toolkit and am having fun with it. I completed building my first
Shoes app, but I am facing problem with its executable. It would really be
helpful if you can help.

           I have made a ruby shoes application and packaged it using the
interface which I got after downloading:
http://shoesrb.com/downloads.html
<https://mailtrack.io/trace/link/8962f16765502b250ac7f390245ea8ddae2626c7>

On packaging my app for linux 32 bit , I get a file:
AutoCyberoamLogin-i686.run

Now to run it, I make it executable and then run it with
./AutoCyberoamLogin-i686.run
Generates the following output on terminal:
Verifying archive integrity... All good.
Uncompressing

AutoCyberoamLogin..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................


But as soon as I close the terminal, the app window also gets closed and
program terminates. I tried to run the script in background with:
A) ./AutoCyberoamLogin-i686.run &
and
B) nohup ./AutoCyberoamLogin-i686.run &
but no help!
In case A) , the app runs in background but as soon as I close that
terminal, my shoes gui also gets closed.
In case B) , it opens a terminal like unwanted window along with my shoes
gui, and when I close the unwanted window, my shoes gui also gets closed.

I later explored the possibility of .desktop files, and configured it to
run the required script and disabled terminal in option. But this also
didn't help.
My .desktop file is as:
[Desktop Entry]
Version=1.0
Name=AutoCyberoamLogin
Comment=This is my comment
Exec=/home/harsh/Desktop/AutoCyberoamLogin-i686.run
Icon=/home/harsh/Desktop/favicon.png
Type=Application
Terminal=false
Categories=Utility;Application;


This is the link to the snapshot to my problem, please help!

http://ge.tt/3jggJ6r1/v/0
<https://mailtrack.io/trace/link/9dab6702409e2d97f76de7ac9b5e30a7f6c43262>


Please help me, I have been struggling with this problem since a long time.

Thanks in advance.

regards,
Harsh

Re: [shoes] Please Help me! Problem with shoes executable in linux

From:
Cecil Coupe
Date:
2014-08-13 @ 18:43
The .run file is an installer, it copies things into 
~/.shoes/federales.  You don't run it to execute your program.  The 
terminal behaviour is standard Linux.  If you don't want to use a 
terminal to execute your AutoCyberoamLogin program then you'll have to 
create a desktop entry.

After run the installer you should have a AutoCyberoamLogin file (your 
ruby script) in the directory you ran the installer from. That's the 
directory/file to put in the Exec line.

Cecil.
On 08/13/2014 08:57 AM, Harsh Trivedi wrote:
> Hello,
>    I am a ruby on rails / ruby developer. I just started learning 
> Shoes toolkit and am having fun with it. I completed building my first 
> Shoes app, but I am facing problem with its executable. It would 
> really be helpful if you can help.
>
>    I have made a ruby shoes application and packaged it using the 
> interface which I got after downloading:
> http://shoesrb.com/downloads.html 
> <https://mailtrack.io/trace/link/8962f16765502b250ac7f390245ea8ddae2626c7>
>
> On packaging my app for linux 32 bit , I get a file:
> AutoCyberoamLogin-i686.run
>
> Now to run it, I make it executable and then run it with 
> ./AutoCyberoamLogin-i686.run
> Generates the following output on terminal:
> Verifying archive integrity... All good.
> Uncompressing 
> 
AutoCyberoamLogin.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

> 
.......................................................................................................................................................................................................................................................................................................................................................................................................................
>
>
> But as soon as I close the terminal, the app window also gets closed 
> and program terminates. I tried to run the script in background with:
> A) ./AutoCyberoamLogin-i686.run &
> and
> B) nohup ./AutoCyberoamLogin-i686.run &
> but no help!
> In case A) , the app runs in background but as soon as I close that 
> terminal, my shoes gui also gets closed.
> In case B) , it opens a terminal like unwanted window along with my 
> shoes gui, and when I close the unwanted window, my shoes gui also 
> gets closed.
>
> I later explored the possibility of .desktop files, and configured it 
> to run the required script and disabled terminal in option. But this 
> also didn't help.
> My .desktop file is as:
> [Desktop Entry]
> Version=1.0
> Name=AutoCyberoamLogin
> Comment=This is my comment
> Exec=/home/harsh/Desktop/AutoCyberoamLogin-i686.run
> Icon=/home/harsh/Desktop/favicon.png
> Type=Application
> Terminal=false
> Categories=Utility;Application;
>
> This is the link to the snapshot to my problem, please help!
>
> http://ge.tt/3jggJ6r1/v/0 
> <https://mailtrack.io/trace/link/9dab6702409e2d97f76de7ac9b5e30a7f6c43262>
>
>
> Please help me, I have been struggling with this problem since a long 
> time.
>
> Thanks in advance.
>
> regards,
> Harsh
>

Re: [shoes] Please Help me! Problem with shoes executable in linux

From:
Cecil Coupe
Date:
2014-08-13 @ 19:17
Hi,
   My first answer was incomplete and slightly wrong.

   You only need to do packaging if you intend to give your program to 
someone else.

If you want an desktop entry the exec line should be 
'<abs-path-to>.shoes./federales/shoes 
<abs-path-to>/AutoCyberoamLogin.rb' i.e. just pass the script name to 
shoes.

   The .run is overkill if you're just running the program on your system.

--Cecil

On 08/13/2014 08:57 AM, Harsh Trivedi wrote:
> Hello,
>    I am a ruby on rails / ruby developer. I just started learning 
> Shoes toolkit and am having fun with it. I completed building my first 
> Shoes app, but I am facing problem with its executable. It would 
> really be helpful if you can help.
>
>    I have made a ruby shoes application and packaged it using the 
> interface which I got after downloading:
> http://shoesrb.com/downloads.html 
> <https://mailtrack.io/trace/link/8962f16765502b250ac7f390245ea8ddae2626c7>
>
> On packaging my app for linux 32 bit , I get a file:
> AutoCyberoamLogin-i686.run
>
> Now to run it, I make it executable and then run it with 
> ./AutoCyberoamLogin-i686.run
> Generates the following output on terminal:
> Verifying archive integrity... All good.
> Uncompressing 
> 
AutoCyberoamLogin.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

> 
.......................................................................................................................................................................................................................................................................................................................................................................................................................
>
>
> But as soon as I close the terminal, the app window also gets closed 
> and program terminates. I tried to run the script in background with:
> A) ./AutoCyberoamLogin-i686.run &
> and
> B) nohup ./AutoCyberoamLogin-i686.run &
> but no help!
> In case A) , the app runs in background but as soon as I close that 
> terminal, my shoes gui also gets closed.
> In case B) , it opens a terminal like unwanted window along with my 
> shoes gui, and when I close the unwanted window, my shoes gui also 
> gets closed.
>
> I later explored the possibility of .desktop files, and configured it 
> to run the required script and disabled terminal in option. But this 
> also didn't help.
> My .desktop file is as:
> [Desktop Entry]
> Version=1.0
> Name=AutoCyberoamLogin
> Comment=This is my comment
> Exec=/home/harsh/Desktop/AutoCyberoamLogin-i686.run
> Icon=/home/harsh/Desktop/favicon.png
> Type=Application
> Terminal=false
> Categories=Utility;Application;
>
> This is the link to the snapshot to my problem, please help!
>
> http://ge.tt/3jggJ6r1/v/0 
> <https://mailtrack.io/trace/link/9dab6702409e2d97f76de7ac9b5e30a7f6c43262>
>
>
> Please help me, I have been struggling with this problem since a long 
> time.
>
> Thanks in advance.
>
> regards,
> Harsh
>