Tiny Core Linux

General TC => General TC Talk => Topic started by: jhaveri_hiral on October 07, 2010, 10:42:54 AM

Title: Which Files for Desktop icons????
Post by: jhaveri_hiral on October 07, 2010, 10:42:54 AM
Hello ,,

When I start my Tiny Core Linux from Live USB, there appears 4 icons at the centre-bottom of the Desktop. these are for Exit, ATerm, App and Panel..

I want to that when I click on these icons, what are the commands that run in the Background???

Which files are getting executed and where are these located???

Thank You!! :)
Title: Re: Which Files for Desktop icons????
Post by: Juanito on October 07, 2010, 11:01:05 AM
Look at the files in /home/tc/.wmx, eg:
Code: [Select]
$ cat /home/tc/.wmx/Appbrowser
#!/bin/sh
exec appbrowser
Title: Re: Which Files for Desktop icons????
Post by: jhaveri_hiral on October 07, 2010, 11:33:42 AM
Thanks for the reply..  :) :)

I already got these files, but I want to know from where does "appbrowser" gets executed in the following code :
Code: [Select]
#!/bin/sh
exec appbrowser

Even if we type appbrowser at the Terminal, it gets executed. So from where is this command located  ??? ??? ???
Title: Re: Which Files for Desktop icons????
Post by: jls on October 07, 2010, 03:21:24 PM
Code: [Select]
which appbrowser
Title: Re: Which Files for Desktop icons????
Post by: Juanito on October 07, 2010, 09:35:14 PM
Even if we type appbrowser at the Terminal, it gets executed. So from where is this command located  ??? ??? ???

If you enter:
Code: [Select]
$ echo $PATH..this will show you where tc looks for applications to execute if the full path to the application is not specified.

If you enter
Code: [Select]
$ which appbrowser..this will show you the full path of the first instance of "appbrowser" found in $PATH
Title: Re: Which Files for Desktop icons????
Post by: jhaveri_hiral on October 10, 2010, 10:47:52 AM
@Juanito :
Thank you a lot for your reply.. The code that you gave worked well..
Code: [Select]
echo $PATH

I got the path from where commands like exittc, appbrowser, etc gets executed..
The path is following -->
/usr/bin

I changed their content and kept my script and hurray!! they are working...

So Thanks a lot... :D :D :D ;D