Wapp

Check-in [253fa3bcea]
Login

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

Overview
Comment:Ignore stderr returns from xdg-open, as suggested by forum post 07078234d6.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 253fa3bcea19dde230da026391cd26592e31baf1e21fe928fc9ad4076cef45d9
User & Date: drh 2022-11-10 11:44:50
Context
2022-11-16
19:15
Update the built-in SQLite to the official version 3.40.0 release. (Leaf check-in: 6f5b05852e user: drh tags: trunk)
2022-11-10
11:44
Ignore stderr returns from xdg-open, as suggested by forum post 07078234d6. (check-in: 253fa3bcea user: drh tags: trunk)
2022-11-08
14:39
Update the built-in SQLite to the latest 3.40.0 beta. (check-in: f4a6f71da6 user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to wapp.tcl.

410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
#
proc wappInt-start-browser {url} {
  global tcl_platform
  if {$tcl_platform(platform)=="windows"} {
    exec cmd /c start $url &
  } elseif {$tcl_platform(os)=="Darwin"} {
    exec open $url &
  } elseif {[catch {exec xdg-open $url}]} {
    exec firefox $url &
  }
}

# This routine is a "socket -server" callback.  The $chan, $ip, and $port
# arguments are added by the socket command.
#






|







410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
#
proc wappInt-start-browser {url} {
  global tcl_platform
  if {$tcl_platform(platform)=="windows"} {
    exec cmd /c start $url &
  } elseif {$tcl_platform(os)=="Darwin"} {
    exec open $url &
  } elseif {[catch {exec -ignorestderr xdg-open $url}]} {
    exec firefox $url &
  }
}

# This routine is a "socket -server" callback.  The $chan, $ip, and $port
# arguments are added by the socket command.
#