Skip to content

Commit af90931

Browse files
committed
more debug info in "about"
1 parent cbc9a21 commit af90931

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- fix kplot on win
66
- build polishing
7+
- more debug info in "about"
78

89
## 9.0.1 2025/02/24
910

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ gboolean main_option_time_save = FALSE;
4747
gboolean main_option_profile = FALSE;
4848
gboolean main_option_no_load_menus = FALSE;
4949

50-
static const char *main_argv0 = NULL; /* argv[0] */
50+
const char *main_argv0 = NULL; /* argv[0] */
5151

5252
static char prefix_buffer[VIPS_PATH_MAX];
5353
static gboolean prefix_valid = FALSE;

src/main.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern Watchgroup *main_watchgroup;
2727
extern Imageinfogroup *main_imageinfogroup;
2828

2929
extern void *main_c_stack_base;
30+
extern const char *main_argv0;
3031

3132
extern gboolean main_option_time_save;
3233
extern gboolean main_option_profile;

src/mainwindow.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,12 @@ mainwindow_size_images(VipsObject *object, size_t *size)
10111011
void
10121012
mainwindow_about(Mainwindow *main, VipsBuf *buf)
10131013
{
1014-
double sz = find_space(PATH_TMP);
1014+
vips_buf_appendf(buf, _("argv0 = %s\n"), main_argv0);
1015+
vips_buf_appendf(buf, _("prefix = %s\n"), get_prefix());
1016+
vips_buf_appendf(buf, _("VIPSHOME = %s\n"), g_getenv("VIPSHOME"));
1017+
vips_buf_appendf(buf, "\n");
10151018

1019+
double sz = find_space(PATH_TMP);
10161020
if (sz < 0)
10171021
vips_buf_appendf(buf, _("no temp area\n"));
10181022
else {

0 commit comments

Comments
 (0)