Skip to content

Commit

Permalink
Updated fix for bug linuxmint#294 (corrected approach to isolated pro…
Browse files Browse the repository at this point in the history
…file)
  • Loading branch information
Cristiano Guadagnino committed Apr 17, 2024
1 parent 6b57511 commit 6c8fd5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions usr/lib/webapp-manager/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,11 @@ def create_webapp(self, name, url, icon, category, browser, custom_parameters, i
pass

if browser.browser_type == BROWSER_TYPE_FALKON:
if isolate_profile:
falkon_profile_path = os.path.join(FALKON_PROFILES_DIR, codename)
os.makedirs(falkon_profile_path)
# Create symlink of profile dir at ~/.config/falkon/profiles
falkon_orig_prof_dir = os.path.join(os.path.expanduser("~/.config/falkon/profiles"), codename)
os.symlink(falkon_profile_path, falkon_orig_prof_dir)
falkon_profile_path = os.path.join(FALKON_PROFILES_DIR, codename)
os.makedirs(falkon_profile_path)
# Create symlink of profile dir at ~/.config/falkon/profiles
falkon_orig_prof_dir = os.path.join(os.path.expanduser("~/.config/falkon/profiles"), codename)
os.symlink(falkon_profile_path, falkon_orig_prof_dir)


def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_profile, navbar, privatewindow, url):
Expand Down Expand Up @@ -349,7 +348,8 @@ def get_exec_string(self, browser, codename, custom_parameters, icon, isolate_pr
# KDE Falkon
exec_string = browser.exec_path
exec_string += " --wmclass=WebApp-" + codename
exec_string += " --profile=" + codename
if isolate_profile:
exec_string += " --profile=" + codename
if privatewindow:
exec_string += " --private-browsing"
if custom_parameters:
Expand Down

0 comments on commit 6c8fd5e

Please sign in to comment.