Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
thunar:dev:build_and_run [2025/07/18 09:45] – [Thunar - build, test, and debugging suggestions] alexxconsthunar:dev:build_and_run [2025/08/17 20:06] (current) – [Thunar - build, test, and debugging suggestions] alexxcons
Line 23: Line 23:
      
 If any dependencies are missing, meson will tell you. Depending on your distribution, installing the "dev" version of the dependent packages might be sufficient. (e.g. package: libxfc4eutil-2-dev, libxfce4ui-2-dev, ... (naming might differ between distributions)) If any dependencies are missing, meson will tell you. Depending on your distribution, installing the "dev" version of the dependent packages might be sufficient. (e.g. package: libxfc4eutil-2-dev, libxfce4ui-2-dev, ... (naming might differ between distributions))
-If that does not help, you will need to build and install the dependencies from source as well.+If that does not help, you will need to build and install the dependencies from source as well. (You might need to run "sudo /sbin/ldconfig -v" after installing shared libaries from source)
  
 When autogen has finished successfully (all required dependencies have been installed), you can build thunar: When autogen has finished successfully (all required dependencies have been installed), you can build thunar:
   meson compile -C build   meson compile -C build
  
-For testing only thunar itself, you don't need to install it. You can run it directly from the source folder. (Though if you want to test thunar plugins, you will need to install) +For testing only thunar itself, you don't need to install it. You can run it directly from the source folder. (Though if you want to test thunar plugins, you will need to install):
-Here is my personal script for starting thunar from source:+
  
-  #!/bin/bash +  build/thunar/thunar -q;G_MESSAGES_DEBUG=all build/thunar/thunar
-   +
-  # Quit any running thunar instance and start a new thunar from source. Enable debug messages +
-  THUNAR_TEST_FOLDER=/path/to/thunar/testing/folder +
-  THUNAR=build/thunar/thunar +
-  $THUNAR -q;G_MESSAGES_DEBUG=all $THUNAR $THUNAR_TEST_FOLDER+
  
-TODO: Support that via meson. Here a workaround to as well test thunar plugin changes (thunar-sbr in this example) without the need to install thunar:+Here a workaround to as well test thunar plugin changes (thunar-sbr in this example) without the need to install thunar:
  
-  ./autogen.sh --with-custom-thunarx-dirs-enabled +  meson compile -C build -Dthunarx-dirs-envvar=true
-  make+
   THUNARX_DIRS=~/git/thunar/plugins/thunar-sbr/.libs ./thunar/thunar   THUNARX_DIRS=~/git/thunar/plugins/thunar-sbr/.libs ./thunar/thunar
  
Line 72: Line 65:
 Here is a small collection of useful flags which can be passed to ''meson setup'' : Here is a small collection of useful flags which can be passed to ''meson setup'' :
  
-<code>--enable-gtk-doc : Creates html documentation inside /doc/reference/thunarx/html +<code> 
---enable-introspection : for usage of the GtkInspector + 
---prefix <install_dir>: install thunar to install_dir +-Dgtk-doc=true : Creates html documentation inside /doc/reference/thunarx/html 
---enable-maintainer-mode +-Dintrospection=true 
---enable-debug=full|yes|minimum|no</code>+--buildtype=debug|release|plain</code> 
 + 
 +A full list can be found here: https://gitlab.xfce.org/xfce/thunar/-/blob/master/meson_options.txt?ref_type=heads
  
 [[|Back To Top]] [[|Back To Top]]
 ---- ----
 [[ https://docs.xfce.org/xfce/thunar/start|Return to Main thunar documentation page]] [[ https://docs.xfce.org/xfce/thunar/start|Return to Main thunar documentation page]]