mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Fix setting background image and logo via remote control key mapping not working
This commit is contained in:
parent
22f6728fed
commit
004aaf3291
2 changed files with 4 additions and 0 deletions
|
|
@ -80,11 +80,13 @@ failed, the command will exit with a success code.
|
|||
if len(args) != 1:
|
||||
self.fatal('Must specify path to exactly one PNG image')
|
||||
path = os.path.expanduser(args[0])
|
||||
import secrets
|
||||
ret = {
|
||||
'match': opts.match,
|
||||
'configured': opts.configured,
|
||||
'layout': opts.layout,
|
||||
'all': opts.all,
|
||||
'stream_id': secrets.token_urlsafe(),
|
||||
}
|
||||
if path.lower() == 'none':
|
||||
ret['data'] = '-'
|
||||
|
|
|
|||
|
|
@ -75,11 +75,13 @@ failed, the command will exit with a success code.
|
|||
if len(args) != 1:
|
||||
self.fatal('Must specify path to exactly one PNG image')
|
||||
path = os.path.expanduser(args[0])
|
||||
import secrets
|
||||
ret = {
|
||||
'match': opts.match,
|
||||
'self': opts.self,
|
||||
'alpha': opts.alpha,
|
||||
'position': opts.position,
|
||||
'stream_id': secrets.token_urlsafe(),
|
||||
}
|
||||
if path.lower() == 'none':
|
||||
ret['data'] = '-'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue