desktopicons_other.go 797 B

1234567891011121314151617181920
  1. // ============================================================================
  2. //go:build !windows || service
  3. // desktopicons_other.go — 隐藏/显示桌面图标(非 Windows 或服务模式)
  4. //
  5. // 仅 Windows 支持桌面图标显隐;其它平台返回明确的错误提示。
  6. // ============================================================================
  7. package main
  8. import "fmt"
  9. // setDesktopIconsVisible 非 Windows 平台不支持,返回错误。
  10. func setDesktopIconsVisible(hide bool) (string, error) {
  11. return "", fmt.Errorf("当前系统不支持桌面图标显隐")
  12. }
  13. // setDesktopIconOnlyVisible 非 Windows 平台不支持,返回错误。
  14. func setDesktopIconOnlyVisible(hide bool) (string, error) {
  15. return "", fmt.Errorf("当前系统不支持桌面图标显隐")
  16. }