Skip to content

Commit 050f6ac

Browse files
Merge pull request #1020 from dynamsoft-docs/preview
add new faq
2 parents d79050c + a1f3482 commit 050f6ac

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
layout: default-layout
3+
noTitleIndex: true
4+
needAutoGenerateSidebar: true
5+
title: LoadImageEx File Dialog Closes Immediately on Linux
6+
keywords: Dynamic Web TWAIN, Linux, LoadImageEx, File Dialog, GTK, libgtk2.0-0
7+
breadcrumbText: LoadImageEx File Dialog Closes Immediately on Linux
8+
description: LoadImageEx File Dialog Closes Immediately on Linux
9+
date: 2026-07-06 10:14:50 +0000
10+
last_modified: 2026-07-06 10:14:50 +0000
11+
---
12+
13+
# LoadImageEx File Dialog Closes Immediately on Linux
14+
15+
### Symptom
16+
17+
When calling the `LoadImageEx` API on Linux, the native file selection dialog briefly appears and then immediately closes.
18+
19+
The operation fails, and the following message may be reported in the browser console:
20+
21+
```text
22+
User cancelled the operation.
23+
```
24+
25+
### Issue characteristics
26+
27+
- Only occurs on Linux
28+
- Occurs when calling the `LoadImageEx` API
29+
- The native file dialog flashes briefly and then closes automatically
30+
- The user is unable to select a file
31+
- The browser console reports `User cancelled the operation`
32+
33+
### Reason
34+
35+
This issue is caused by a missing Linux system dependency.
36+
37+
Dynamic Web TWAIN relies on the GTK2 runtime library (`libgtk2.0-0`) to display the native file selection dialog on Linux. If this library is not installed, the dialog cannot be initialized correctly and is immediately closed by the operating system. Dynamic Web TWAIN therefore reports the operation as being cancelled by the user.
38+
39+
### Resolution
40+
41+
Install the GTK2 runtime library on the Linux machine:
42+
43+
**Debian-based distributions**
44+
45+
```bash
46+
sudo apt install libgtk2.0-0
47+
```

_articles/faq/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ description: Dynamic Web TWAIN SDK Documentation FAQ
211211
33. [Error message - CORS Errors caused by local network access permissions when using Chromium 142 and later](/_articles/faq/chromium-142-local-network-access-issue.md)
212212
34. [Error message - File is Damaged and Can’t Be Opened in macOS](/_articles/faq/file-damaged-on-macos.md)
213213
35. [Safari 26.2 Regression Causing Dynamic Web TWAIN v19.3 Auto-Reconnect Failure on macOS](/_articles/faq/safari-26-2-regression.md)
214+
36. [LoadImageEx File Dialog Closes Immediately on Linux](/_articles/faq/file-dialog-in-linux.md)
214215

215216
## Licensing and Purchase
216217

0 commit comments

Comments
 (0)