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 [2022/07/31 21:01] – [Thunar - build, test, and debugging suggestions] alexxconsthunar:dev:build_and_run [2024/03/13 16:05] (current) – [Thunar - build, test, and debugging suggestions] alexxcons
Line 19: Line 19:
   cd thunar   cd thunar
  
-Execute autogen (required packages: build-essential, automake):+Execute autogen (required packages: build-essential, automake, gobject-introspection):
   ./autogen.sh   ./autogen.sh
      
Line 37: Line 37:
   echo "./thunar/thunar -q;./thunar/thunar $THUNAR_TEST_FOLDER"   echo "./thunar/thunar -q;./thunar/thunar $THUNAR_TEST_FOLDER"
   ./thunar/thunar -q;G_MESSAGES_DEBUG=all ./thunar/thunar $THUNAR_TEST_FOLDER   ./thunar/thunar -q;G_MESSAGES_DEBUG=all ./thunar/thunar $THUNAR_TEST_FOLDER
 +
 +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
 +  make
 +  THUNARX_DIRS=~/git/thunar/plugins/thunar-sbr/.libs ./thunar/thunar
  
 ---- ----
Line 60: Line 66:
  
 === Thunar Build Flags === === Thunar Build Flags ===
-Here is a small collection of flags which often needs to be passed to ''./autogen.sh'' :+Here is a small collection of useful flags which can be passed to ''./autogen.sh'' :
  
 <code>--enable-gtk-doc : Creates html documentation inside /doc/reference/thunarx/html <code>--enable-gtk-doc : Creates html documentation inside /doc/reference/thunarx/html
 --enable-introspection : for usage of the GtkInspector --enable-introspection : for usage of the GtkInspector
 --prefix <install_dir>: install thunar to install_dir --prefix <install_dir>: install thunar to install_dir
---g-fatal-warnings : Lets thunar crash an any warning/error. Useful to get a backtrace / locate a warning/error/critical 
 --enable-maintainer-mode --enable-maintainer-mode
 --enable-debug=full|yes|minimum|no</code> --enable-debug=full|yes|minimum|no</code>
  
 +Some flags need to be passed to the thunar binary:
 +<code>--g-fatal-warnings : Lets thunar crash an any warning/error. Useful to get a backtrace / locate a warning/error/critical</code>
 +
 +You might want to run that via gdb to get a backtrace:
 +<code>gdb --args thunar/.libs/thunar --g-fatal-warnings</code>
 [[|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]]