summarylogtreecommitdiffstats
path: root/fix-pacmanager-crash-getXWindowsList.patch
diff options
context:
space:
mode:
authorJoan Figueras2017-08-23 14:03:09 +0200
committerJoan Figueras2017-08-23 14:03:09 +0200
commit68166add56e4eb418f9797d3ba6f82bab91e5a90 (patch)
treefae8591374d9783dd70e4c8cbdd1265720fcf60c /fix-pacmanager-crash-getXWindowsList.patch
parent1e8b8d65a8e6b21d506fcdecf2c43df0082b1018 (diff)
downloadaur-pacmanager-git.tar.gz
Fix for https://github.com/perseo22/pacmanager/issues/25
Diffstat (limited to 'fix-pacmanager-crash-getXWindowsList.patch')
-rw-r--r--fix-pacmanager-crash-getXWindowsList.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/fix-pacmanager-crash-getXWindowsList.patch b/fix-pacmanager-crash-getXWindowsList.patch
new file mode 100644
index 00000000000..3d5d7fa955d
--- /dev/null
+++ b/fix-pacmanager-crash-getXWindowsList.patch
@@ -0,0 +1,15 @@
+--- a/lib/PACTerminal.pm 2017-08-23 13:57:41.352826565 +0200
++++ b/lib/PACTerminal.pm 2017-08-23 13:58:42.379341866 +0200
+@@ -1060,9 +1060,9 @@
+ $title = $$self{_CFG}{environments}{$$self{_UUID}}{method} eq 'RDP (xfreerdp)' ?
+ "FreeRDP: $$self{_CFG}{environments}{$$self{_UUID}}{ip}" . ( $$self{_CFG}{environments}{$$self{_UUID}}{port} == 3389 ? '' : ":$$self{_CFG}{environments}{$$self{_UUID}}{port}" ) :
+ "TightVNC: $$self{_CFG}{environments}{$$self{_UUID}}{user}";
+- my $list = _getXWindowsList;
+- return 1 unless grep( { $_ =~ /$title/ and $title = $_; } keys %{ $$list{'by_name'} } );
+- $$self{_GUI}{_SOCKET} -> add_id( $$list{'by_name'}{$title}{'xid'} );
++# my $list = _getXWindowsList;
++# return 1 unless grep( { $_ =~ /$title/ and $title = $_; } keys %{ $$list{'by_name'} } );
++# $$self{_GUI}{_SOCKET} -> add_id( $$list{'by_name'}{$title}{'xid'} );
+ return 0;
+ } ) if $$self{EMBED} && $$self{_CFG}{environments}{$$self{_UUID}}{method} eq 'RDP (xfreerdp)' || $$self{_CFG}{environments}{$$self{_UUID}}{method} eq 'VNC';
+ }