On Tue, Nov 19, 2024 at 12:43 PM Go Canes <[email protected]> wrote:
>
> On Tue, Nov 19, 2024 at 11:57 AM Patrick O'Callaghan
> <[email protected]> wrote:
> > > If it's genuinely small, it might be trivial to rewrite?
> >
> > You can find the script at:
> >
> > https://github.com/zepalmer/script-vdr
> >
>
*** vdr.og 2024-11-19 12:39:44.413184228 -0500
--- vdr 2024-11-19 12:59:08.937069435 -0500
***************
*** 77,78 ****
--- 77,79 ----
p = subprocess.Popen(["wmctrl","-G","-l","-p"],
+ text=True,
stdin=None,stdout=subprocess.PIPE,
***************
*** 87,89 ****
if not line: continue
! cols = re.split('\s+', line, maxsplit=8)
window_id = cols[0]
--- 88,90 ----
if not line: continue
! cols = re.split(r'\s+', line, maxsplit=8)
window_id = cols[0]
***************
*** 91,93 ****
window_pid = int(cols[2])
! title = cols[8].decode('utf-8')
if window_pid != pid:
--- 92,94 ----
window_pid = int(cols[2])
! title = cols[8]
if window_pid != pid:
The above changes will allow --save to run without error.
--
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue