mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-config: LP: #910638
- ensure that config dir exists before touching reload flag
This commit is contained in:
parent
d04f5812d4
commit
5d2265af95
2 changed files with 10 additions and 3 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -34,6 +34,8 @@ byobu (5.2) unreleased; urgency=low
|
||||||
* usr/bin/byobu, usr/share/byobu/profiles/tmux: LP: #908766
|
* usr/bin/byobu, usr/share/byobu/profiles/tmux: LP: #908766
|
||||||
- use screen-bce instead of screen-256color, to support background
|
- use screen-bce instead of screen-256color, to support background
|
||||||
colors correctly
|
colors correctly
|
||||||
|
* usr/bin/byobu-config: LP: #910638
|
||||||
|
- ensure that config dir exists before touching reload flag
|
||||||
|
|
||||||
[ Daniel Hahler ]
|
[ Daniel Hahler ]
|
||||||
* usr/bin/byobu-ctrl-a, usr/share/byobu/profiles/tmux: LP: #910779
|
* usr/bin/byobu-ctrl-a, usr/share/byobu/profiles/tmux: LP: #910779
|
||||||
|
|
|
@ -63,9 +63,14 @@ def ioctl_GWINSZ(fd): #### TABULATION FUNCTIONS
|
||||||
return cr
|
return cr
|
||||||
|
|
||||||
def reload_required():
|
def reload_required():
|
||||||
f = open(RELOAD_FLAG,'w')
|
try:
|
||||||
f.close()
|
if not os.path.exists(BYOBU_CONFIG_DIR):
|
||||||
commands.getoutput(RELOAD_CMD)
|
os.makedirs(BYOBU_CONFIG_DIR, 0755)
|
||||||
|
f = open(RELOAD_FLAG,'w')
|
||||||
|
f.close()
|
||||||
|
commands.getoutput(RELOAD_CMD)
|
||||||
|
except:
|
||||||
|
True
|
||||||
|
|
||||||
def terminal_size(): ### decide on *some* terminal size
|
def terminal_size(): ### decide on *some* terminal size
|
||||||
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2) # try open fds
|
cr = ioctl_GWINSZ(0) or ioctl_GWINSZ(1) or ioctl_GWINSZ(2) # try open fds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue