app_other.go 773 B

12345678910111213141516171819202122232425262728293031323334
  1. //go:build ci || (!linux && !darwin && !windows && !freebsd && !openbsd && !netbsd && !js && !wasm && !test_web_driver)
  2. // +build ci !linux,!darwin,!windows,!freebsd,!openbsd,!netbsd,!js,!wasm,!test_web_driver
  3. package app
  4. import (
  5. "errors"
  6. "net/url"
  7. "os"
  8. "path/filepath"
  9. "fyne.io/fyne/v2"
  10. "fyne.io/fyne/v2/theme"
  11. )
  12. func defaultVariant() fyne.ThemeVariant {
  13. return theme.VariantDark
  14. }
  15. func rootConfigDir() string {
  16. return filepath.Join(os.TempDir(), "fyne-test")
  17. }
  18. func (a *fyneApp) OpenURL(_ *url.URL) error {
  19. return errors.New("Unable to open url for unknown operating system")
  20. }
  21. func (a *fyneApp) SendNotification(_ *fyne.Notification) {
  22. fyne.LogError("Refusing to show notification for unknown operating system", nil)
  23. }
  24. func watchTheme() {
  25. // no-op
  26. }