File: fixUdisks.patch

package info (click to toggle)
scolasync 5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,420 kB
  • sloc: javascript: 4,094; python: 3,849; xml: 3,814; makefile: 116; sh: 31
file content (15 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: scolasync/src/usbDisk2.py
===================================================================
--- scolasync.orig/src/usbDisk2.py
+++ scolasync/src/usbDisk2.py
@@ -28,6 +28,10 @@ dependances="python3-dbus python3-dbus.m
 
 import dbus, subprocess, os, os.path, re, time, threading, logging, inspect
 from dbus.mainloop.glib import DBusGMainLoop, threads_init
+
+import gi
+gi.require_version('UDisks', '2.0')
+
 from gi.repository import Gio, GLib, UDisks
 from PyQt5.QtWidgets import *