bon,
on a deux scripts python dont "ice-firefox" dans lequel on trouve en effet :
execute = 'firefox -profile ' + path + ' -no-remote -new-instance' + ' ' + sys.argv[1]
puis
os.system(execute)
le script complet :
#!/usr/bin/env python3
import os
import sys
sys.argv[1]
profileid1 = str.replace(sys.argv[1], 'http://', '')
profileid2 = str.replace(profileid1, 'https://', '')
profileid = str.replace(profileid2, '/', '_')
profilepath = os.path.expanduser('~/.local/share/ice/firefox/' + str(profileid))
chromepath = os.path.expanduser('~/.local/share/ice/firefox/' + str(profileid) + '/chrome')
path = os.path.dirname(chromepath)
execute = 'firefox -profile ' + path + ' -no-remote -new-instance' + ' ' + sys.argv[1]
os.system('mkdir -p ' + chromepath)
os.system('echo "#nav-bar { max-height: 0 !important; margin-bottom: -20px !important; opacity: 0; } #identity-box, #navigator-toolbox::after, #tabbrowser-tabs { --tab-min-height: 0px !important; margin-left: 0px !important; height: 0px !important; }" > ' + chromepath + '/userChrome.css')
os.system('echo "user_pref(\\"browser.cache.disk.enable\\", false);" > ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.cache.disk.capacity\\", 0);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.cache.disk.filesystem_reported\\", 1);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.cache.disk.smart_size.enabled\\", false);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.cache.disk.smart_size.first_run\\", false);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.cache.disk.smart_size.use_old_max\\", false);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.ctrlTab.previews\\", true);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"browser.tabs.warnOnClose\\", false);" >> ' + profilepath + '/user.js')
os.system('echo "user_pref(\\"plugin.state.flash\\", 2);" >> ' + profilepath + '/user.js')
os.system('cp -n /usr/lib/peppermint/ice/search.json.mozlz4 ' + profilepath + '/search.json.mozlz4')
os.system('cp -n /usr/lib/peppermint/ice/places.sqlite ' + profilepath + '/places.sqlite')
os.system(execute)
os.system('rm -rf ' + path + '/cache2')
l'exec lancé par le .desktop est ice...
empaffé, même pas fichu de mettre le chemin complet !
et en fouillant encore dans ice on trouve ça :
# ADDENDUM: Added support for Firefox (via "ice-firefox") and Vivaldi.
donc ice-firefox est un patch spécifique à firefox...
mais, bizarrement n'est appelé nul part directement...
alors je gratte encore... et trouve dans writefile(...)
if (browser == "firefox"):
firefox_profile_path = "{0}/{1}".format(_FF_PROFILES_DIR, formatted)
appfile1.write("Exec={0} --class ICE-SSB-{2} --profile {3} --no-remote {1}\n".format(browser, address, formatted, firefox_profile_path))
appfile1.write("IceFirefox={0}\n".format(formatted))
init_firefox_profile(firefox_profile_path)
qui recrée un fichier .desktop
hou laaa, bobo la tête !
j'ai une théorie :
ce "truc" crash à la fermeture voire à l'extinction, le système intercepte le crach et tente une restauration de l'application pour en faire un log, la relance et tu te retrouves avec l'arrivée de l'application alors que tu n'as rien demandé...
mwé... capillotracté !
bref...
pour chercher ice sans remplir un botin cherche le patch : "ice-firefox"
dans le patch c'est clairement inscrit :
~/.local/share/ice/firefox/
donc tu devrais trouver :
ls $HOME/.local/share/ice
voire direct en graphique :
nautilus $HOME/.local/share/ice &
et paf !!! un bon coup de balai la dedans !
et ici : /usr/lib/peppermint/ice/
nautilus /usr/lib/peppermint/ice/
et ça : /usr/share/pixmaps/ice.png
ls /usr/share/pixmaps/ice.png
si il est là ; paf !!!
sudo rm /usr/share/pixmaps/ice.png
et je pense qu'on en aura fait le tour !