Revision history for ApplicationEntry


Revision [22085]

Last edited on 2012-07-07 12:07:12 by darkcity
Additions:
Page no longer used, see [[ROXApplicationDirectory ROX Application Directories]]
Deletions:
Page no longer used see [[ROXApplicationDirectories ROX Application Directories]]


Revision [22084]

Edited on 2012-07-07 12:06:59 by darkcity
Additions:
Page no longer used see [[ROXApplicationDirectories ROX Application Directories]]
Deletions:
[[HomePage]] > [[ComponentHowTo Components and HowTos]] > [[HowToConfigure Configure]]

====How to make Application Entries====




work in progress
//
There are two ways to associate file-types in Puppy. The first is the by setting the 'default action' when clicking a certain file type. The second is creating an option in the ##File 'filename'## menu when file is 'right-clicked'.

=='Right-click' Association==

MIME-Types are used to standardised file-types. The 'Right-click' options are stored in
##""/root/.config/rox.sourceforge.net/OpenWith""##

There is a directory for each mime-type in use, for example the MIME-Type directory for ##image/jpeg## becomes ##.image_jpeg##

~A shortcut for getting to this directory is to right-click on a jpeg and select
~//File 'filename.jpg' > Customise Menu ...//

Typically the MIME-type directories are filled with links to ROX ""AppDirs"" stored at ##/usr/local/apps##
If the application/action you want is already in this directory simply create a link in the MIME-type directory.

If not then create an ""AppDir"". They consist of a directory containing three files-

Appinfo.xml - information about app in xml
""AppRun"" - script to run program
"".DirIcon"" - image file icon for directory (many apps have an icon stored in ##/usr/share/pixmaps## which you can link)

These typically contain the following - using [[AbiWord]] as an example-

Appinfo.xml -
%%<?xml version="1.0"?>
<AppInfo>
<Summary>Abiword text editor</Summary>
</AppInfo>%%

""AppRun"" -
%%#!/bin/sh
exec abiword "$@"%%

The ##"S@"## passes the file clicked on to the application.

To pass a file to a [[WINE]] program see the follow example with Irfanview

""AppRun"" -
%%#!/bin/sh
# Purpose: To convert Unix filename to DOS style to pass as an argument
# to wine when starting IrfanView from filer.
#
FileName="z:"${1//\//\\}
exec wine 'C:\\Program Files\\IrfanView\\i_view32.exe' $FileName%%

=='Default Action' Association==
To set the 'default action' of a file-type follow the following instructions (modified from [[http://www.murga-linux.com/puppy/viewtopic.php?p=363990 this thread]])

**1.** Check if your file-type has a MIME-type entry in Puppy Linux. They are stored in the text file ##/usr/share/mime/globs##
If file-type is already associated to the correct MIME-type jump to step 2.

Add or edit your MIME-Type to file-type definition. For example, if you have a TextMaker file whose extension is ##.tmd## and your making a non-standard MIME-type ##application/x-tmd## append the code ##application/x-tmd:*.tmd## to the globs file. ENSURE you end the line with a 'return' otherwise it won't work.

(The x- in the MIME-type name above is used to indicate that this type hasn't already been registered with the MIME-type authorities ([[www.iana.org/assignments/media-types/ media-types]]). i.e. It is a non-standard/private/local type, not an IANA officially registered one.)

**2.** Create an executable shell script in ##/usr/local/bin## , for starting up the TextMaker program and passing the 'clicked on' file to it. In our example, .tmd files will be associated to TextMaker. We'll make a script called ##textmaker## (though it could be anything you like):

textmaker -
%%
#!/bin/sh
exec /usr/local/textmaker/tml "$@"
%%

You don't need the path to the executable (in this case ##/usr/local/textmaker/##) if the path directory your Linux [[PATH]] environment variable.

If textmaker was a [[WINE]] program then the script might be-
textmaker -
%%#!/bin/sh
# Purpose: To convert Unix filename to DOS style to pass as an argument
# to wine when starting IrfanView from filer.
#
FileName="z:"${1//\//\\}
exec wine 'C:\\Program Files\\TextMaker\\TextMaker.exe' $FileName%%


**3.** Finally, tell the ROX filer to run that script when you click on your file-type. To do that you create another script in ##/root/Choices/MIME-types## named after the MIME-type. In our example the MIME type was application/x-tmd, so the file becomes ##application_x-tmd##-

application_x-tmd
%%#!/bin/sh
exec textmaker "$1"%%

~An alternative to step 3. is to use 'Set Run Action' i.e right click on a file of your type and enter the shell command. In our example it would be ##exec textmaker "$1"##.

~NOTE this alternative will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. This method will take precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).


==Related Pages==
[[FileTypes]]
[[http://roscidus.com/desktop/taxonomy/term/16 MimeTypes in Rox]]
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy ""AppDirs"" are only used for 'right-click' file associations rather than containing the whole apps
[[http://www.murga-linux.com/puppy/viewtopic.php?p=363429#363429 Example involving two MS applications running over wine, thread]]
[[http://www.murga-linux.com/puppy/viewtopic.php?p=363990 How to add a new MIME-type (file extension type) thread]]
[[http://theinfamousj.tumblr.com/post/13433505685/puppy-linux-adding-new-mime-filetypes adding MIME type on tumblr (with pics)]]

//


Revision [20523]

Edited on 2012-02-06 14:30:07 by darkcity
Additions:
====How to make Application Entries====
work in progress
//
//
Deletions:
====How to make File Associations====


Revision [20506]

Edited on 2012-02-06 13:02:26 by darkcity
Additions:
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy ""AppDirs"" are only used for 'right-click' file associations rather than containing the whole apps
Deletions:
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps


Revision [20505]

Edited on 2012-02-06 13:01:37 by darkcity
Additions:
~NOTE this alternative will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. This method will take precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).
Deletions:
~NOTE this alternative will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. ~This method will takes precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).


Revision [20504]

Edited on 2012-02-06 12:59:46 by darkcity
Additions:
exec textmaker "$1"%%
Deletions:
exec textmaker "$1"


Revision [20503]

Edited on 2012-02-06 12:59:05 by darkcity
Additions:
**3.** Finally, tell the ROX filer to run that script when you click on your file-type. To do that you create another script in ##/root/Choices/MIME-types## named after the MIME-type. In our example the MIME type was application/x-tmd, so the file becomes ##application_x-tmd##-
~An alternative to step 3. is to use 'Set Run Action' i.e right click on a file of your type and enter the shell command. In our example it would be ##exec textmaker "$1"##.
~NOTE this alternative will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. ~This method will takes precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).
Deletions:
**3.** Finally, tell ROX filer to open that run script when you click on a file-type of that MIME-type. To do that you create a short executable shell script in ##/root/Choices/MIME-types## named after the MIME-type. In our example the MIME type was application/x-tmd, so the file becomes ##application_x-tmd##-
~An alternative to step 3. is to use 'Set Run Action' i.e right click on the file-type and enter a shell command for the file type. In our example it would be ##exec textmaker "$1"##.
~NOTE this will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. ~This method will takes precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).


Revision [20502]

Edited on 2012-02-06 12:56:18 by darkcity
Additions:
~An alternative to step 3. is to use 'Set Run Action' i.e right click on the file-type and enter a shell command for the file type. In our example it would be ##exec textmaker "$1"##.
Deletions:
~An alternative to step 3. is to use 'Set Run Action' i.e right click on the file-type and enter a shell command for the file type. In our example it would be ##exec textmaker "$1".


Revision [20501]

Edited on 2012-02-06 12:55:36 by darkcity
Additions:
**2.** Create an executable shell script in ##/usr/local/bin## , for starting up the TextMaker program and passing the 'clicked on' file to it. In our example, .tmd files will be associated to TextMaker. We'll make a script called ##textmaker## (though it could be anything you like):
You don't need the path to the executable (in this case ##/usr/local/textmaker/##) if the path directory your Linux [[PATH]] environment variable.
Deletions:
**2.** Create an executable shell script in ##/usr/local/bin## , for starting up the TextMaker program and passing the 'clicked on' file to it. For our example, .tmd files, we will associate to TextMaker. We'll make a script called ##textmaker## (though it could be anything you like) to it:
You don't need the path to executable (in this case ##/usr/local/textmaker/##) if it is in a directory that part of your Linux [[PATH]] environment variable.


Revision [20500]

Edited on 2012-02-06 12:51:31 by darkcity
Additions:
exec /usr/local/textmaker/tml "$@"
You don't need the path to executable (in this case ##/usr/local/textmaker/##) if it is in a directory that part of your Linux [[PATH]] environment variable.
Deletions:
exec /path_to_program/textmaker "$@"
You don't need the /path_to_program/ part if that directory is already in your Linux [[PATH]] environment variable.


Revision [20499]

Edited on 2012-02-06 12:42:02 by darkcity
Additions:
Add or edit your MIME-Type to file-type definition. For example, if you have a TextMaker file whose extension is ##.tmd## and your making a non-standard MIME-type ##application/x-tmd## append the code ##application/x-tmd:*.tmd## to the globs file. ENSURE you end the line with a 'return' otherwise it won't work.
Deletions:
Add or edit your MIME-Type to file-type definition. For example, if you have a file whose extension is .tmd and your making a non-standard MIME-type application/x-tmd append the code ##application/x-tmd:*.tmd## to the globs file. ENSURE you end the line with a 'return' otherwise it won't work.


Revision [20498]

Edited on 2012-02-06 12:40:14 by darkcity
Additions:
=='Default Action' Association==
Deletions:
=='Default Action' Association (and Icon)==


Revision [20497]

Edited on 2012-02-06 12:39:48 by darkcity
Deletions:
AppRun -


Revision [20496]

Edited on 2012-02-06 12:39:33 by darkcity
Additions:
To pass a file to a [[WINE]] program see the follow example with Irfanview

AppRun -
Deletions:
To pass a file to a [[WINE]] program see the follow example with Irfanview


Revision [20495]

Edited on 2012-02-06 12:38:56 by darkcity
Additions:
The ##"S@"## passes the file clicked on to the application.
Deletions:
The ##"S@"## typically passes file clicked on to the app.


Revision [20494]

Edited on 2012-02-06 12:34:35 by darkcity
Additions:
(The x- in the MIME-type name above is used to indicate that this type hasn't already been registered with the MIME-type authorities ([[www.iana.org/assignments/media-types/ media-types]]). i.e. It is a non-standard/private/local type, not an IANA officially registered one.)
**2.** Create an executable shell script in ##/usr/local/bin## , for starting up the TextMaker program and passing the 'clicked on' file to it. For our example, .tmd files, we will associate to TextMaker. We'll make a script called ##textmaker## (though it could be anything you like) to it:
textmaker -
%%
exec /path_to_program/textmaker "$@"
%%
You don't need the /path_to_program/ part if that directory is already in your Linux [[PATH]] environment variable.
If textmaker was a [[WINE]] program then the script might be-
textmaker -
exec wine 'C:\\Program Files\\TextMaker\\TextMaker.exe' $FileName%%
**3.** Finally, tell ROX filer to open that run script when you click on a file-type of that MIME-type. To do that you create a short executable shell script in ##/root/Choices/MIME-types## named after the MIME-type. In our example the MIME type was application/x-tmd, so the file becomes ##application_x-tmd##-
application_x-tmd
exec textmaker "$1"
~An alternative to step 3. is to use 'Set Run Action' i.e right click on the file-type and enter a shell command for the file type. In our example it would be ##exec textmaker "$1".
~NOTE this will save MIME-Type run action in ##/root/.config/rox.sourceforge.net/MIME-types## rather than ##/root/Choices/MIME-types##. ~This method will takes precedence over using ##/root/Choices/MIME-types## (i.e. ROX looks to ##/root/.config/rox.sourceforge.net/MIME-types## first).
[[http://www.murga-linux.com/puppy/viewtopic.php?p=363429#363429 Example involving two MS applications running over wine, thread]]
[[http://www.murga-linux.com/puppy/viewtopic.php?p=363990 How to add a new MIME-type (file extension type) thread]]
[[http://theinfamousj.tumblr.com/post/13433505685/puppy-linux-adding-new-mime-filetypes adding MIME type on tumblr (with pics)]]
Deletions:
(The x- in the MIME-type name above is used to indicate that this type hasn't already been
registered with the MIME-type authorities ([[www.iana.org/assignments/media-types/ media-types]]). i.e. It is a non-standard/private/local type, not an IANA officially registered one.)
4. You now need to create an executable shell script in /usr/local/bin, which for this example I will call defaultRunTextMaker (though you can call it anything you like), for starting up the TextMaker program.
It should contain the following lines:
Code:
exec /path_to_where_the_program_is/TextMaker.exe "$@"
You don't need the /path_to_where_the_program_is/ part if that directory is already in your Linux PATH environment variable.
5. Finally, you need to tell ROX to open that default Run script should you click on a file of that mime type. To do that you create a short executable shell script in ~/Choices/MIME-types named, for this example, application_x-tmd, which should contain the lines:
Code:
exec defaultRunTextMaker "$1"
!!! NOTE WELL that you DO NOT (and should not) need to set a default Run Action after doing the above; fixing the mime type information was enough. i.e DO NOT right click on the file icon in order to forcibly enter a shell command for the file type; instead leave everything up to the above mime type mechanism.
5b. EDIT: Having said the above, once you have modified the /usr/share/mime/globs file, you COULD alternatively not bother about the above step 5 code at all and just set a Run Action for the file type by right-clicking on the file icon and entering the appropriate shell command (e.g. path_to_TextMaker "$@"). That will automatically create an appropriate application_x-tmd shell script, but ROX stores that in ~/.config/rox.sourceforge.net/MIME-types rather than in ~/Choices/MIME-types. Either way should work I think. However, if you have, for example, an application_x-tmd shell script in both ~/.config/rox.sourceforge.net/MIME-types and in ~/Choices/MIME-types, then the one in ~/.config/rox.sourceforge.net/MIME-types takes precedence (i.e. ROX seems to look there first). The right-click Set Run Action mechanism thus provides a convenient means of quickly (permanently or temporarily) over-riding a previously set up default mime handler (in ~/Choices/MIME-types) for a given file type.
6. That is it!
Now any file with the extension .tmd should be recognised as having MIME type application/x-tmd. [Right clicking on the file icon and selecting Properties shows you the mime type the file is being recognised as].
The appropriate Linux TextMaker application should thus be automatically opened on clicking the .tmd file icon.
[Note, however, that you may need to close the ROX window and reopen it before clicking on the app icon after first doing all the above; I can't remember. I certainly did not need to reboot though].
For a more complicated example, involving two MS applications running over wine, see this post/thread here: http://www.murga-linux.com/puppy/viewtopic.php?p=363429#363429
As forum member davids45 comments in the above "wine-user" related thread:


Revision [20493]

Edited on 2012-02-06 11:37:56 by darkcity
Additions:
"".DirIcon"" - image file icon for directory (many apps have an icon stored in ##/usr/share/pixmaps## which you can link)
=='Default Action' Association (and Icon)==
To set the 'default action' of a file-type follow the following instructions (modified from [[http://www.murga-linux.com/puppy/viewtopic.php?p=363990 this thread]])
**1.** Check if your file-type has a MIME-type entry in Puppy Linux. They are stored in the text file ##/usr/share/mime/globs##
If file-type is already associated to the correct MIME-type jump to step 2.
Add or edit your MIME-Type to file-type definition. For example, if you have a file whose extension is .tmd and your making a non-standard MIME-type application/x-tmd append the code ##application/x-tmd:*.tmd## to the globs file. ENSURE you end the line with a 'return' otherwise it won't work.
(The x- in the MIME-type name above is used to indicate that this type hasn't already been
registered with the MIME-type authorities ([[www.iana.org/assignments/media-types/ media-types]]). i.e. It is a non-standard/private/local type, not an IANA officially registered one.)
4. You now need to create an executable shell script in /usr/local/bin, which for this example I will call defaultRunTextMaker (though you can call it anything you like), for starting up the TextMaker program.
It should contain the following lines:
Code:
#!/bin/sh
exec /path_to_where_the_program_is/TextMaker.exe "$@"
You don't need the /path_to_where_the_program_is/ part if that directory is already in your Linux PATH environment variable.
5. Finally, you need to tell ROX to open that default Run script should you click on a file of that mime type. To do that you create a short executable shell script in ~/Choices/MIME-types named, for this example, application_x-tmd, which should contain the lines:
Code:
#!/bin/sh
exec defaultRunTextMaker "$1"
!!! NOTE WELL that you DO NOT (and should not) need to set a default Run Action after doing the above; fixing the mime type information was enough. i.e DO NOT right click on the file icon in order to forcibly enter a shell command for the file type; instead leave everything up to the above mime type mechanism.
5b. EDIT: Having said the above, once you have modified the /usr/share/mime/globs file, you COULD alternatively not bother about the above step 5 code at all and just set a Run Action for the file type by right-clicking on the file icon and entering the appropriate shell command (e.g. path_to_TextMaker "$@"). That will automatically create an appropriate application_x-tmd shell script, but ROX stores that in ~/.config/rox.sourceforge.net/MIME-types rather than in ~/Choices/MIME-types. Either way should work I think. However, if you have, for example, an application_x-tmd shell script in both ~/.config/rox.sourceforge.net/MIME-types and in ~/Choices/MIME-types, then the one in ~/.config/rox.sourceforge.net/MIME-types takes precedence (i.e. ROX seems to look there first). The right-click Set Run Action mechanism thus provides a convenient means of quickly (permanently or temporarily) over-riding a previously set up default mime handler (in ~/Choices/MIME-types) for a given file type.
6. That is it!
Now any file with the extension .tmd should be recognised as having MIME type application/x-tmd. [Right clicking on the file icon and selecting Properties shows you the mime type the file is being recognised as].
The appropriate Linux TextMaker application should thus be automatically opened on clicking the .tmd file icon.
[Note, however, that you may need to close the ROX window and reopen it before clicking on the app icon after first doing all the above; I can't remember. I certainly did not need to reboot though].
For a more complicated example, involving two MS applications running over wine, see this post/thread here: http://www.murga-linux.com/puppy/viewtopic.php?p=363429#363429
As forum member davids45 comments in the above "wine-user" related thread:
==Related Pages==
[[FileTypes]]
[[http://roscidus.com/desktop/taxonomy/term/16 MimeTypes in Rox]]
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps
Deletions:
"".DirIcon"" - image file icon for directory
==
==
[[http://roscidus.com/desktop/taxonomy/term/16 MimeTypes in Rox]]
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps


Revision [20488]

Edited on 2012-02-06 10:16:05 by darkcity
Additions:
[[http://roscidus.com/desktop/AppDirs ""AppDirs"" on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps
Deletions:
[[http://roscidus.com/desktop/AppDirs AppDirs on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps


Revision [20487]

Edited on 2012-02-06 10:15:17 by darkcity
Additions:
The ##"S@"## typically passes file clicked on to the app.
Deletions:
The ##"S@"## typically passes document file to the app.


Revision [20486]

Edited on 2012-02-06 10:13:58 by darkcity
Additions:
There is a directory for each mime-type in use, for example the MIME-Type directory for ##image/jpeg## becomes ##.image_jpeg##
Deletions:
There is a directory for each mime-type in use, for example the directory for ##image/jpeg## becomes ##.image_jpeg##


Revision [20485]

Edited on 2012-02-06 10:12:28 by darkcity
Additions:
##""/root/.config/rox.sourceforge.net/OpenWith""##
There is a directory for each mime-type in use, for example the directory for ##image/jpeg## becomes ##.image_jpeg##
~A shortcut for getting to this directory is to right-click on a jpeg and select
~//File 'filename.jpg' > Customise Menu ...//
If not then create an ""AppDir"". They consist of a directory containing three files-
Appinfo.xml - information about app in xml
""AppRun"" - script to run program
"".DirIcon"" - image file icon for directory
Appinfo.xml -
%%<?xml version="1.0"?>
""AppRun"" -
%%#!/bin/sh
The ##"S@"## typically passes document file to the app.
%%#!/bin/sh
Deletions:
##/root/.config/rox.sourceforge.net/OpenWith## using a directory for each mime-type, for example the directory for ##image/jpeg## is ##.image_jpeg##
A shortcut for getting to this directory is to right-click on a jpeg and select
//File 'filename.jpg' > Customise Menu ...//
If not create an ""AppDir"". They consist of a directory containing three files-
Appinfo.xml - information about app in xml
""AppRun"" - script to run program
"".DirIcon"" - image file icon for directory
Appinfo.xml -
%%<?xml version="1.0"?>
""AppRun"" -
%%#!/bin/sh
The ##"S@"## typically passes document file to the app.
%%#!/bin/sh


Revision [20484]

Edited on 2012-02-06 10:09:42 by darkcity
Additions:
====How to make File Associations====
There are two ways to associate file-types in Puppy. The first is the by setting the 'default action' when clicking a certain file type. The second is creating an option in the ##File 'filename'## menu when file is 'right-clicked'.
=='Right-click' Association==
MIME-Types are used to standardised file-types. The 'Right-click' options are stored in
##/root/.config/rox.sourceforge.net/OpenWith## using a directory for each mime-type, for example the directory for ##image/jpeg## is ##.image_jpeg##
A shortcut for getting to this directory is to right-click on a jpeg and select
//File 'filename.jpg' > Customise Menu ...//
Typically the MIME-type directories are filled with links to ROX ""AppDirs"" stored at ##/usr/local/apps##
If the application/action you want is already in this directory simply create a link in the MIME-type directory.
If not create an ""AppDir"". They consist of a directory containing three files-
These typically contain the following - using [[AbiWord]] as an example-
The ##"S@"## typically passes document file to the app.
To pass a file to a [[WINE]] program see the follow example with Irfanview
# Purpose: To convert Unix filename to DOS style to pass as an argument
# to wine when starting IrfanView from filer.
#
FileName="z:"${1//\//\\}
exec wine 'C:\\Program Files\\IrfanView\\i_view32.exe' $FileName%%
==
==
[[http://roscidus.com/desktop/taxonomy/term/16 MimeTypes in Rox]]
[[http://roscidus.com/desktop/AppDirs AppDirs on ROX desktop]] - in Puppy AppDirs are only used for file associations rather than containing the whole apps
Deletions:
====How to Make an Application Entry====
Application Entries tell Puppy about an binary/executable program and how to run it. They are linked for file associations.
A entries are stored in ##/usr/local/apps##
They consist of a directory containing three files-
These typicalcontain the following - using [[AbiWord]] as an example-
The %%"S@"%% typically passes document file to the app.


Revision [20483]

Edited on 2012-02-06 07:49:58 by darkcity
Additions:
""AppRun"" - script to run program
"".DirIcon"" - image file icon for directory
Deletions:
AppRun - script to run program
.DirIcon - image file icon for directory


Revision [20482]

Edited on 2012-02-06 07:49:40 by darkcity
Additions:
""AppRun"" -
Deletions:
AppRun -


Revision [20481]

Edited on 2012-02-06 07:49:23 by darkcity
Additions:
Application Entries tell Puppy about an binary/executable program and how to run it. They are linked for file associations.
A entries are stored in ##/usr/local/apps##
They consist of a directory containing three files-
Appinfo.xml - information about app in xml
AppRun - script to run program
.DirIcon - image file icon for directory
These typicalcontain the following - using [[AbiWord]] as an example-
Appinfo.xml -
%%<?xml version="1.0"?>
<AppInfo>
<Summary>Abiword text editor</Summary>
</AppInfo>%%
AppRun -
%%#!/bin/sh
exec abiword "$@"%%
The %%"S@"%% typically passes document file to the app.
Deletions:
/usr/local/apps details
/usr/share/applications menu
(working in progress)


Revision [20480]

The oldest known version of this page was created on 2012-02-06 05:23:49 by darkcity
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki