localsend/localsend

Runtime dependency on wlanapi.dll

Offen

#436 geöffnet am 02.05.2023

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Dart (4.378 Forks)batch import
bughelp wantedwindows

Repository-Metriken

Stars
 (81.257 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Describe the bug

LocalSend may fail to start in Windows Server environments, as most installations are not configured in a way that wlanapi.dll is available for use.

To reproduce

Attempt to start LocalSend on a Windows Server OS (Desktop Experience) with its out-of-box configuration.

Expected behavior

LocalSend should start without issues, as the application's core functionality does not necessarily require a wireless NIC.

Screenshots

Error Dialog

Desktop (please complete the following information)

  • OS: Windows Server
  • Version: 2019

Smartphone (please complete the following information)

No response

Additional context

While smoke testing a new version of the Chocolatey package against the latest Chocolatey Testing Environment image (itself based on Windows Server 2019), I decided to try a quick runtime test and encountered this issue.

Windows Server has wireless networking functionality disabled by default, and requires enabling the Wireless LAN Service feature (WirelessNetworking) to install the necessary components. From my limited testing, LocalSend appears to start and work as intended once the Optional Feature is enabled, and after the OS is rebooted successfully.

Based on some poking around, it seems the network_info_plus package in particular has a dependency on Windows's Native Wifi API, which is likely responsible for the requirement. Not sure if it's possible or practical for LocalSend to use an alternate source for network information when the required components are not available.

For now, the feature requirement may need to be documented as a prerequisite for Windows Server environments.

Contributor Guide