Tk Source Code

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

6 check-ins related to "x11-desktop-portal"

2026-10-05
11:54
Portal file dialogs: do not pass directories and files outside the native file system (zipfs etc.) to the desktop, as on Windows. leaf check-in: 47c17834 user: serhiy.storchaka tags: x11-desktop-portal
09:35
getOpenFile.n: do not claim that desktops ignore -initialdir (KDE honors it). check-in: 687621aa user: serhiy.storchaka tags: x11-desktop-portal
2026-10-03
19:39
Fix printing texts through the portal: wrap the lines to the printable area used by the print system's text filter (it ignores the margins from the dialog), and convert texts to PDF with cupsfilter, because not all desktops pass the orientation to the print system. check-in: f057e04d user: serhiy.storchaka tags: x11-desktop-portal
19:02
chooseDirectory.n: the desktop's dialog on X11 only returns existing directories, whatever the value of -mustexist. check-in: 693c2afc user: serhiy.storchaka tags: x11-desktop-portal
18:30
TIP 763: Use the XDG desktop portal on X11 for the file dialogs (tk_getOpenFile, tk_getSaveFile, tk_chooseDirectory), tk print and tk sysnotify.

libdbus is loaded at runtime (unix/tkUnixPortal.c, a generic bridge: ::tk::portal::_call, _request, _parent); the portal logic is in library/portal.tcl. The Tcl dialogs, the Tk print dialog, libnotify and the Tk notification window remain as fallbacks. When printing to a file, the document is converted to PDF or PostScript with cupsfilter (or ps2pdf). The dialog tests disable the portal. check-in: 45ae5a5a user: serhiy.storchaka tags: x11-desktop-portal

17:40
Correct error in time check-in: bc6b2673 user: kevin_walzer tags: trunk, main