Page 1 sur 1

Icone épinglées dans la barre des tâches

Posté : 06 mai 2019 - 12:04
par gaelds
Bonjour,
J'ai réutilisé le code du paquet thunderbird pour pour ajouter une icone Firefox à la barre des tâches, et par la même occasion supprimer celle d'IE . L'icône IE disparait mais celle de FF n'apparaît pas dans la barre des tâches, alors que le fichier lnk se trouve bien dans "C:\Users\utilisateur\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar". Si j'épingle manuellement le raccourci FF ça fonctionne.

Code : Tout sélectionner

def session_setup():
    firefox_quickLaunch = makepath(user_appdata(),'Microsoft','Internet Explorer','Quick Launch', 'User Pinned', 'TaskBar', 'Mozilla firefox.Lnk')
    ie_quickLaunch = makepath(user_appdata(),'Microsoft','Internet Explorer','Quick Launch', 'User Pinned', 'TaskBar', 'Internet Explorer.Lnk')

    if iswin64:
        destdir64 = makepath(programfiles,'Mozilla Firefox')
        if isfile(makepath(destdir64,'firefox.exe')):
            create_shortcut(firefox_quickLaunch,target=makepath(destdir64,'firefox.exe'), wDir=makepath(destdir64),icon=makepath(destdir64,'firefox.exe'))
    else:
        destdir32 = makepath(programfiles32,'Mozilla Firefox')
        if isfile(makepath(destdir32,'firefox.exe')):
            create_shortcut(firefox_quickLaunch,target=makepath(destdir32,'firefox.exe'), wDir=makepath(destdir32),icon=makepath(destdir32,'firefox.exe'))

    if isfile(ie_quickLaunch):
        remove_file(ie_quickLaunch)

Re: Icone épinglées dans la barre des tâches

Posté : 24 mai 2019 - 13:29
par sfonteneau
Dans thunderbird on remplace si présent:

Pour ajouter ... :

https://social.technet.microsoft.com/Fo ... progeneral

Re: Icone épinglées dans la barre des tâches

Posté : 24 mai 2019 - 13:40
par sfonteneau
Hey à force de recherche je viens de découvrir syspin

http://www.technosys.net/products/utils/pintotaskbar

Code : Tout sélectionner

syspin "C:\Program Files (x86)\wapt\waptself.exe" c:5386
A lancer en session setup

Il faudrait que l'on gratte un peu pour comprendre comment le petit soft fonctionne.

Re: Icone épinglées dans la barre des tâches

Posté : 27 mai 2019 - 15:43
par gaelds
Merci pour le lien ! Effectivement ça fonctionne bien avec Firefox ou calc par exemple, mais bizarrement je n'y arrive pas avec l'explorateur windows sur la dernière ligne...

Code : Tout sélectionner

run(ur'syspin.exe "%s" c:5386' %makepath(programfiles,'Mozilla Firefox',"firefox.exe"))
run(ur'syspin.exe "%windir%\System32\calc.exe" c:5386')

run(ur'syspin.exe "%windir%\explorer.exe" c:5386')

Re: Icone épinglées dans la barre des tâches

Posté : 23 janv. 2020 - 17:28
par nliaudat
reverse engineered version of syspin.exe available at https://github.com/airwolf2026/Win10Pin2TB

Re: Icone épinglées dans la barre des tâches

Posté : 12 mars 2020 - 15:56
par nliaudat
La méthode officielle suggère de modifier C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Shell\LayoutModification.xml

Par exemple

Code : Tout sélectionner

<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
    xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
    xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
    xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
    xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
    Version="1">
  <CustomTaskbarLayoutCollection PinListPlacement="Replace">
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
        <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
  </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
remplace la barre des tâches et ajoute juste le lien sur l'explorateur de fichiers.

Plus d'info sur https://docs.microsoft.com/en-us/window ... 10-taskbar