Skip to content

Commit

Permalink
Fix Gnome wayland handling window names (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaeggi authored Nov 28, 2023
1 parent ecb6ed7 commit fef2b7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion usr/lib/webapp-manager/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
firefox_profile_path = os.path.join(firefox_profiles_dir, codename)
exec_string = ("sh -c 'XAPP_FORCE_GTKWINDOW_ICON=\"" + icon + "\" " + browser.exec_path +
" --class WebApp-" + codename +
" --name WebApp-" + codename +
" --profile " + firefox_profile_path +
" --no-remote")
if privatewindow:
Expand Down Expand Up @@ -338,11 +339,13 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
exec_string = (browser.exec_path +
" --app=" + "\"" + url + "\"" +
" --class=WebApp-" + codename +
" --name=WebApp-" + codename +
" --user-data-dir=" + profile_path)
else:
exec_string = (browser.exec_path +
" --app=" + "\"" + url + "\"" +
" --class=WebApp-" + codename)
" --class=WebApp-" + codename +
" --name=WebApp-" + codename)

if privatewindow:
if browser.name == "Microsoft Edge":
Expand Down

0 comments on commit fef2b7d

Please sign in to comment.