LazPaint Make it portable: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Go [[LazPaint|back]] | |
| 2 | 2 | ||
| 3 | 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 | 4 | ||
| 5 | 5 | ### 1. Download binaries | |
| 6 | 6 | ||
| 7 | 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 | 8 | ||
| 9 | 9 | ### 2. Decompress | |
| 10 | 10 | ||
| 11 | 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 | 12 | ||
| 13 | 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 | 14 | ||
| 15 | 15 | On MacOS, the structure is a bit different in order to be interpreted as an application. | |
| 16 | 16 | ||
| 17 | 17 | ### 3. Configure | |
| 18 | 18 | ||
| 19 | 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 | 20 | ||
| 21 | 21 | Inside write the following: | |
| 22 | 22 | ||
| 23 | - | ||
| 24 | - | ||
| 23 | + | ```text | |
| 24 | + | [General] | |
| 25 | + | ConfigFile=LazPaint.cfg | |
| 26 | + | ``` | |
| 25 | 27 | ||
| 26 | 28 | On MacOS, the binary file is in the MacOS subdirectory. You will need to write a relative path to the Resources directory: | |
| 27 | 29 | ||
| 28 | - | ||
| 30 | + | ```text | |
| 31 | + | ConfigFile=../Resources/LazPaint.cfg | |
| 32 | + | ``` | |
| 29 | 33 | ||
| 30 | 34 | ### 4. Create a link | |
| 31 | 35 | ||
| 32 | 36 | That's it. If you run the program now, it will write its configuration with the binaries. | |
| 33 | 37 | ||
| 34 | 38 | You may want to create a shortcut to the binary file. This will depend on your desktop environment. | |
| 35 | 39 | ||
| 36 | 40 | --- | |
| 37 | 41 | *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 | 42 | Category: LazPaint |
