Skip to content

Commit fef2b7d

Browse files
authored
Fix Gnome wayland handling window names (#272)
1 parent ecb6ed7 commit fef2b7d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

usr/lib/webapp-manager/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
308308
firefox_profile_path = os.path.join(firefox_profiles_dir, codename)
309309
exec_string = ("sh -c 'XAPP_FORCE_GTKWINDOW_ICON=\"" + icon + "\" " + browser.exec_path +
310310
" --class WebApp-" + codename +
311+
" --name WebApp-" + codename +
311312
" --profile " + firefox_profile_path +
312313
" --no-remote")
313314
if privatewindow:
@@ -338,11 +339,13 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
338339
exec_string = (browser.exec_path +
339340
" --app=" + "\"" + url + "\"" +
340341
" --class=WebApp-" + codename +
342+
" --name=WebApp-" + codename +
341343
" --user-data-dir=" + profile_path)
342344
else:
343345
exec_string = (browser.exec_path +
344346
" --app=" + "\"" + url + "\"" +
345-
" --class=WebApp-" + codename)
347+
" --class=WebApp-" + codename +
348+
" --name=WebApp-" + codename)
346349

347350
if privatewindow:
348351
if browser.name == "Microsoft Edge":

0 commit comments

Comments
 (0)