Commit dde13081 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Add a --with-file-manager-program=PROG configure option.

This is so that we can browse the games directory in environments that
do not implement freedesktop FileManager1 DBus interface:
[[https://www.freedesktop.org/wiki/Specifications/file-manager-interface/]]
parent ea66702e
......@@ -41,6 +41,7 @@ mingw64-configure \
--enable-runtime-prefix='TAROT_PREFIX' \
USER_DATA_DIR_VARIABLE='LOCALAPPDATA' \
--with-static-program-name=yes \
--with-file-manager-program=explorer.exe \
HOST_SYSROOT="/usr/x86_64-w64-mingw32/sys-root/mingw" \
|| exit 1
make -j 8 nsi || exit 1
......
......@@ -22,6 +22,9 @@ AC_SUBST([VERSION_ADDITIONAL], m4_esyscmd([./get-version.sh package | tail -c +$
AC_SUBST([LIBTOOL_CURRENT], m4_esyscmd([./get-version.sh libtool | cut -d ':' -f 1]))
AC_SUBST([LIBTOOL_REVISION], m4_esyscmd([./get-version.sh libtool | cut -d ':' -f 2]))
AC_SUBST([LIBTOOL_AGE], m4_esyscmd([./get-version.sh libtool | cut -d ':' -f 3]))
AC_ARG_WITH([file-manager-program], AS_HELP_STRING([--with-file-manager-program=PROGRAM],
[The program to call to open the games directory, instead of calling the org.freedesktop.FileManager1 DBus interface.]))
AC_DEFINE_UNQUOTED([EXTERNAL_FILE_MANAGER_PROGRAM], "$with_file_manager_program", [The name of the program to call to open a specific directory in an external file manager. If set to 'no' or empty, then use the the org.freedesktop.FileManager1 DBus interface.])
# Checks for programs.
AC_PROG_CC
......
......@@ -19,6 +19,9 @@
[CCode (cname="VERSION")]
extern const string VERSION;
[CCode (cname="EXTERNAL_FILE_MANAGER_PROGRAM")]
extern const string EXTERNAL_FILE_MANAGER_PROGRAM;
namespace Tarot {
private class EventQueue {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment