mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
13 lines
326 B
Dart
13 lines
326 B
Dart
import 'package:dbus/dbus.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:spotube/utils/platform.dart';
|
|
|
|
final Provider<DBusClient?> dbusClientProvider = Provider<DBusClient?>((ref) {
|
|
if (kIsLinux) {
|
|
return DBusClient.session();
|
|
}
|
|
return null;
|
|
});
|
|
|
|
final dbus = DBusClient.session();
|