aegis-framework 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -767,10 +767,14 @@ class AegisWindow(Gtk.Window):
767
767
  }
768
768
  GLib.idle_add(self._send_response, callback_id, result)
769
769
  else:
770
- GLib.idle_add(self._send_error, callback_id, f"aria2c exited with code {process.returncode}")
770
+ # aria2c failed (e.g., snap sandbox restrictions) - fallback to urllib
771
+ print(f"[Aegis] aria2c failed (code {process.returncode}), falling back to urllib")
772
+ self._download_with_urllib(url, dest, callback_id)
771
773
 
772
774
  except Exception as e:
773
- GLib.idle_add(self._send_error, callback_id, str(e))
775
+ # On any error, fallback to urllib
776
+ print(f"[Aegis] aria2c error: {e}, falling back to urllib")
777
+ self._download_with_urllib(url, dest, callback_id)
774
778
 
775
779
  def _download_with_urllib(self, url, dest, callback_id):
776
780
  """Fallback download using urllib (single connection)"""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aegis-framework",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Lightweight AppImage framework using WebKit2GTK and Python - An alternative to Electron that creates ~200KB apps instead of 150MB!",
5
5
  "keywords": [
6
6
  "appimage",