/usr/lib/x86_64-linux-gnu/pyotherside/tests/test_issue23/issue23.qml is in pyotherside-tests 1.4.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /**
* Issue #23: importModule runs forever
* https://github.com/thp/pyotherside/issues/23
**/
import QtQuick 2.0
import io.thp.pyotherside 1.3
Rectangle {
width: 300
height: 300
Text {
id: text
anchors.centerIn: parent
}
Python {
Component.onCompleted: {
importModule('gi.repository.Gio', function() {
console.log('import completed');
call('gi.repository.Gio.Settings.new("org.gnome.Vino").keys', [], function(result) {
text.text = result.join('\n');
});
});
}
onError: console.log('Error: ' + traceback);
}
}
|