LazPaint Make it portable: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: LazPaint Make it portable
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Go [[LazPaint|back]] | |
| 2 | + | ||
| 3 | + | By default, LazPaint stores its configuration on the hard drive using the mechanism provided by the operating system to keep a unique configuration. It is however easy to make a portable version of LazPaint. Here are the steps. | |
| 4 | + | ||
| 5 | + | ### 1. Download binaries | |
| 6 | + | ||
| 7 | + | Download the compressed binaries for a 32-bit or 64-bit version of LazPaint. Do not use the installer because this will definitely install it on your computer. Instead, you want to put it on a USB key for example. | |
| 8 | + | ||
| 9 | + | ### 2. Decompress | |
| 10 | + | ||
| 11 | + | Decompress it in a folder on a portable device such as a USB key. Alternatively you can do this on your hard drive and at the end copy the whole thing on another device. | |
| 12 | + | ||
| 13 | + | On Windows and Linux, you get a directory containing the executable binary file, some example of 3d object files (.obj) and a folder with translations (i18n). | |
| 14 | + | ||
| 15 | + | On MacOS, the structure is a bit different in order to be interpreted as an application. | |
| 16 | + | ||
| 17 | + | ### 3. Configure | |
| 18 | + | ||
| 19 | + | Using a plain text editor like Notepad or Gedit, create a text file called *lazpaint.ini* in the same directory as the binary file. | |
| 20 | + | ||
| 21 | + | Inside write the following: | |
| 22 | + | ||
| 23 | + | ` [General]`\ | |
| 24 | + | ` ConfigFile=LazPaint.cfg` | |
| 25 | + | ||
| 26 | + | On MacOS, the binary file is in the MacOS subdirectory. You will need to write a relative path to the Resources directory: | |
| 27 | + | ||
| 28 | + | ` ConfigFile=../Resources/LazPaint.cfg` | |
| 29 | + | ||
| 30 | + | ### 4. Create a link | |
| 31 | + | ||
| 32 | + | That's it. If you run the program now, it will write its configuration with the binaries. | |
| 33 | + | ||
| 34 | + | You may want to create a shortcut to the binary file. This will depend on your desktop environment. | |
| 35 | + | ||
| 36 | + | --- | |
| 37 | + | *From the Free Pascal wiki, page "LazPaint Make it portable", as it stood on 2015-07-10 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* | |
| 38 | + | Category: LazPaint |
