Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use AppIcon with UNC Icon file path #111

Closed
orieben opened this issue Aug 18, 2020 · 3 comments
Closed

Unable to use AppIcon with UNC Icon file path #111

orieben opened this issue Aug 18, 2020 · 3 comments
Assignees
Labels

Comments

@orieben
Copy link

orieben commented Aug 18, 2020

Steps to reproduce

New-BurntToastNotification -Silent -Text $WText -AppLogo "\\dsa.dom\sys\COMLST\Startup\NAL\Icons\warning.ico" -UniqueIdentifier 'ShadowSession'

Expected behavior

Notification issued

Actual behavior

Suspected $env:TEMP is returning a DOS 8.3 : C:\Users\ADMINI~1.DSA\AppData\Local\Temp (a PowerShell bug)
but seems more to be related to an UNC path transformation for the temporary file where the full path is kept

Copy-Item : Could not find a part of the path 'C:\Users\administrator.DSA\AppData\Local\Temp\dsa.dom\sys\COMLST\Startup\NAL\Icons\warning.ico'.
At C:\Program Files\WindowsPowerShell\Modules\BurntToast\0.7.2\BurntToast.psm1:14 char:17

  •             Copy-Item -Path $Source -Destination $NewFilePath
    
    • CategoryInfo : NotSpecified: (:) [Copy-Item], DirectoryNotFoundException
    • FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.PowerShell.Commands.CopyItemCommand

Environment data

Name                           Value                                                                                                                                                                   
----                           -----                                                                                                                                                                   
PSVersion                      5.1.17763.1007                                                                                                                                                          
PSEdition                      Desktop                                                                                                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                 
BuildVersion                   10.0.17763.1007                                                                                                                                                         
CLRVersion                     4.0.30319.42000                                                                                                                                                         
WSManStackVersion              3.0                                                                                                                                                                     
PSRemotingProtocolVersion      2.3                                                                                                                                                                     
SerializationVersion           1.1.0.1      
OsName         : Microsoft Windows Server 2019 Standard
OsVersion      : 10.0.17763
OsArchitecture : 64-bit
Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                                                                                                             
---------- -------    ----                                ----------------                                                                                                                             
Script     0.7.2      BurntToast                          {Get-BTHistory, New-BTAction, New-BTAppId, New-BTAudio...}                                                                                   

@Windos
Copy link
Owner

Windos commented Aug 20, 2020

Ahh... fairly certain I know what the fix here is. Thanks for the report, @orieben!

@Windos
Copy link
Owner

Windos commented Sep 8, 2020

Hey @orieben, there's a fix for this that will be release with v0.8.0

If you're at all interested, you can see this fix being implemented and tested on this live stream VOD.

@Windos Windos closed this as completed in ece9399 Sep 11, 2020
@Windos
Copy link
Owner

Windos commented Sep 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants