You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Bauh has the default "python3" app_id and have no classes, so for custom configuration can cause problem with other apps that didnt change the app_id too.
I want that bauh start windowed in sway, this is made via title, app_id or class, bauh didnt has class, every pop up has a diferent title so I need a rule for popup and window, the only thing left is the app_id, but the app has the default python value.
The correct solution is making an apropiate app_id, and if you create classes too (one class for all the popups for exemple) you will nailed it.
In my context (Gnome 47.1 with dash to dock extension, Wayland), i had a similar issue: in the dock the bauh icon was the standard unknown application cogwheel icon.
By inspecting the window with Looking Glass, one can see that the class was indeed "python3".
Simply modifying context.pynew_qt_application and setting explicitly the application desktop filename seems to resolve my issue: Looking Glass shows now: bauh | wmclass: bauh | app: bauh.desktop.
The patch for that would be :
diff --git a/bauh/context.py b/bauh/context.py
index 5443c9a..b1dbf3f 100644
--- a/bauh/context.py+++ b/bauh/context.py@@ -21,6 +21,7 @@ def new_qt_application(app_config: dict, logger: Logger, quit_on_last_closed: bo
app.setApplicationName(name if name else __app_name__)
app.setApplicationVersion(__version__)
app.setWindowIcon(util.get_default_icon()[1])
+ app.setDesktopFileName(__app_name__)
if app_config['ui']['qt_style']:
app.setStyle(str(app_config['ui']['qt_style']))
I am using __app_name__ assuming that if the app name changes, then the desktop filename would change as well.
Describe the bug
Bauh has the default "python3" app_id and have no classes, so for custom configuration can cause problem with other apps that didnt change the app_id too.
I want that bauh start windowed in sway, this is made via title, app_id or class, bauh didnt has class, every pop up has a diferent title so I need a rule for popup and window, the only thing left is the app_id, but the app has the default python value.
The correct solution is making an apropiate app_id, and if you create classes too (one class for all the popups for exemple) you will nailed it.
Software Environment
bauh version: 0.10.7-1 & 0.10.8.RC-2
O.S: Arch Linux
Python version: Python 3.12.6
Installation method: yay, AUR repository
The text was updated successfully, but these errors were encountered: