]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
script: ceph-backport no longer launches firefox 60983/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 6 Dec 2024 16:49:55 +0000 (11:49 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Dec 2024 16:49:57 +0000 (11:49 -0500)
commit605661f1092f81825e4db47ed250531cf1564623
tree8e440e2c3a7963eb16d2dee61d40c22102364c2a
parenta204f988dc5a8b8f3662e5c5faea67580c2f02b6
script: ceph-backport no longer launches firefox

this script uses `pgrep firefox` to determine whether a browser is open,
and will pause the ceph-backport script waiting for the commands
`firefox "${backport_pr_url}` and `firefox "${redmine_url}"` to exit

on Fedora release 41 with Mozilla Firefox 133.0, `pgrep firefox` always
finds a process even if no browser window is open:

> /usr/lib64/firefox/firefox --dbus-service /usr/bin/firefox

the ceph-backport script prints these URLs as output, so it's easy
enough to open them in a browser where desired

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/script/ceph-backport.sh