WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Which Files for Desktop icons????  (Read 1709 times)

Offline jhaveri_hiral

  • WikiUser
  • *
  • Posts: 7
Which Files for Desktop icons????
« 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!! :)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10884
Re: Which Files for Desktop icons????
« Reply #1 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

Offline jhaveri_hiral

  • WikiUser
  • *
  • Posts: 7
Re: Which Files for Desktop icons????
« Reply #2 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  ??? ??? ???

Online jls

  • Hero Member
  • *****
  • Posts: 2126
Re: Which Files for Desktop icons????
« Reply #3 on: October 07, 2010, 03:21:24 PM »
Code: [Select]
which appbrowser
dCore user

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10884
Re: Which Files for Desktop icons????
« Reply #4 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

Offline jhaveri_hiral

  • WikiUser
  • *
  • Posts: 7
Re: Which Files for Desktop icons????
« Reply #5 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