From Fedora Project Wiki
Description
This test case ensures that the bamf
and bamf-daemon
effectively match and manage application windows.
Setup
- Ensure you have a Fedora system.
- Install the
bamf
andbamf-daemon
packages:sudo dnf install bamf bamf-daemon
. - Start the
bamf-daemon
:systemctl --user start bamfdaemon.service
.
How to test
- Open a terminal.
- Ensure the daemon is running:
sudo systemctl status bamf-daemon
. - Launch multiple applications (e.g., Firefox, Terminal, LibreOffice).
- List matched applications:
bamf-matcher --list-desktop-files
. - Check if the launched applications are listed.
- Use
bamf-matcher
to check for a specific application's state:bamf-matcher --for-window=<Window XID>
. (Replace<Window XID>
with the XID of an application window, which can be obtained using tools likexwininfo
). - Verify that it correctly identifies the state and type of the window.
- Intentionally close and launch various applications, and periodically check their state using
bamf-matcher
.
Expected Results
- The
bamf-daemon
should be active and running without any errors. - The
bamf-matcher --list-desktop-files
should list all opened applications. - The
bamf-matcher --for-window
should accurately represent the state and type of the specified window. - Closing and launching applications should be accurately reflected when querying with
bamf-matcher
.
Optional
For deeper testing:
- Test
bamf
andbamf-daemon
on multiple desktop environments (e.g., GNOME, KDE, XFCE). - Observe the behavior when rapidly switching, launching, and closing various applications.
- Test the integration of
bamf
with application switchers or launchers.