Running an applet from command line

Running an applet from command line

Postby prathibhab on Fri Mar 07, 2008 12:37 pm

To run an applet from terminal, first kill all running versions of the applet:

screen-terminal.png
screen-terminal.png (3.94 KB) Viewed 674 times

Note : my_applet is the name of the binary

Which will pop up a dialog asking you to reload. If you choose "Don't Reload" the applet will be removed from your configuration and you will have to readd it to your panel.

reload-window.png
reload-window.png (12.19 KB) Viewed 680 times

Ignore this dialog for the time being, and run the binary for your applet from the command line:

run_bin.png
run_bin.png (2.76 KB) Viewed 686 times

Your binary should not return to the command line, if it does there is something wrong with your applet (or the applet process is still running somewhere else). With your binary still running click the dialog to reload the applet. The applet running on your panel is the one in your console. All copies of a running applet run out of a single binary, so even if you have multiple copies of my_applet, they are all controlled by the one process.

If you want to kill the applet you have been running on your console, you can do so by pressing Ctrl-C. This will then pop up the dialog asking if you want to reload the applet. You can start a new (rebuilt) applet process on the console before choosing to reload.
Regards,
Prathibha
C-DAC,
Chennai
prathibhab
 
Posts: 27
Joined: Tue Mar 04, 2008 10:11 am

Re: Running an applet from command line

Postby vigneswari on Fri Mar 07, 2008 1:32 pm

hai pratibha,

will this work for nautilus also...
But in nautilus case, if we kill, it wont popup any warning...it just quiting the nautilus.
Also it will reload automatically.

my doubt is this method is applicable for nautilus aslo?

cheers,
vigneswari
cheers,
Vigneswari
vigneswari
 
Posts: 13
Joined: Tue Mar 04, 2008 10:53 am
Location: Chennai

Re: Running an applet from command line

Postby prathibhab on Fri Mar 07, 2008 3:15 pm

Hi Vigneswari,

This method is not applicable to nautilus.

To kill nautilus use the following command:
root@boss[~]#nautilus -q

To reload nautilus use this command
root@boss[~]#nautilus

Regards,
prathibha
Regards,
Prathibha
C-DAC,
Chennai
prathibhab
 
Posts: 27
Joined: Tue Mar 04, 2008 10:11 am


Return to GNOME/KDE

Who is online

Users browsing this forum: No registered users and 1 guest

cron