mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
13 lines
292 B
Dart
13 lines
292 B
Dart
import 'dart:io';
|
|
|
|
import 'package:dbus/dbus.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
final Provider<DBusClient?> dbusClientProvider = Provider<DBusClient?>((ref) {
|
|
if (Platform.isLinux) {
|
|
return DBusClient.session();
|
|
}
|
|
});
|
|
|
|
final dbus = DBusClient.session();
|