-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use wrappers to ensure the environment is configured
before trying to import the gi bindings
- Loading branch information
Showing
9 changed files
with
111 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This file is part of Xpra. | ||
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
import sys | ||
|
||
|
||
def main(): | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.platform import program_context | ||
with program_context("GTK-Info", "GTK Info"): | ||
from xpra.platform.win32 import gui | ||
return gui.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
v = main() | ||
sys.exit(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This file is part of Xpra. | ||
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
import sys | ||
|
||
|
||
def main(): | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.platform import program_context | ||
with program_context("GTK-Info", "GTK Info"): | ||
from xpra.gtk import info | ||
return info.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
v = main() | ||
sys.exit(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This file is part of Xpra. | ||
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
import sys | ||
|
||
|
||
def main(): | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.platform import program_context | ||
with program_context("GTK-Keyboard-Test", "GTK Keyboard Test"): | ||
from xpra.gtk_common import gtk_view_keyboard | ||
return gtk_view_keyboard.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
v = main() | ||
sys.exit(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This file is part of Xpra. | ||
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
import sys | ||
|
||
|
||
def main(argv=()): | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.platform import program_context | ||
with program_context("Screenshot", "Screenshot"): | ||
from xpra.platform.win32 import gdi_screen_capture | ||
return gdi_screen_capture.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
v = main() | ||
sys.exit(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
# This file is part of Xpra. | ||
# Copyright (C) 2024 Antoine Martin <antoine@xpra.org> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
import sys | ||
|
||
|
||
def main(): | ||
# pylint: disable=import-outside-toplevel | ||
from xpra.platform import program_context | ||
with program_context("SystemTray-Test", "SystemTray Test"): | ||
from xpra.client.gtk3.example import tray | ||
return tray.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
v = main() | ||
sys.exit(v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters