First time build
·················
$ meson build
$ cd build
$ ninja

Build, install and run the app with debug messages in one line
..............................................................
$ sudo ninja install && env G_MESSAGES_DEBUG=all com.github.spheras.desktopfolder


Use debugger suite
..................
Nemiver is GNOME's GUI debugger. It can be really useful for locating the source of crashes and bugs.
$ sudo apt install nemiver

After installing use this instead of the one liner above:
$ sudo ninja install && env G_MESSAGES_DEBUG=all nemiver com.github.spheras.desktopfolder


Install uncrustify
··················
Don't use sudo apt install uncrustify!

Run this one-liner to install the latest release of uncrustify:
$ cd ~/Downloads && wget https://github.com/uncrustify/uncrustify/archive/uncrustify-0.65.tar.gz && tar -xf uncrustify-0.65.tar.gz && cd uncrustify-uncrustify-0.65/cmake/ && cmake .. && sudo make install

If you want to run it step by step instead:
$ cd ~/Downloads
$ wget https://github.com/uncrustify/uncrustify/archive/uncrustify-0.65.tar.gz
$ tar -xf uncrustify-0.65.tar.gz
$ cd uncrustify-uncrustify-0.65/cmake/
$ cmake ..
$ sudo make install

This means everyone is using the same version, so the output is consistent.


Use uncrustify
··············
Go to src/ and run uncrustify like this:
$ uncrustify --replace --no-backup -c ../etc/uncrustify-elementary-vala.cfg */*.vala *.vala

Make sure you don't end comment lines with a \ (backslash), otherwise
uncrustify turns the next line into a comment as well:

    // This prints a \
    my_function ();

Gets turned into:

    // This prints a
    // my_function ();

It's okay if you put any character after it though:

    // This prints a \ character.
    // (or) This prints a \.
    my_function ();


Show debug messages
···················
$ export G_MESSAGES_DEBUG=all


Generate pot file
·················
$ ninja com.github.spheras.desktopfolder-pot


Debian build
············
sudo apt install devscripts

From root directory:
$ debuild -uc -us

(Hint) To execute rules:
$ ./debian/rules install


GTK Introspector
················
$ gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true

After that, press Ctrl+Shift+D or Ctrl+Shift+I on the window you want to debug.


Snap creation
·············
$ sudo apt install snapcraft

$ sudo docker pull snapcore/snapcraft
$ sudo docker run -v $PWD:$PWD -w $PWD snapcore/snapcraft snapcraft
