Comments (6)
是没有powershell么,系统是什么?
from cefdetectorx.
同样不能显示图标
Windows 11 25247.1000
from cefdetectorx.
是没有powershell么,系统是什么?
Windows11 22H2 22622.601
PowerShell 7.2.7
from cefdetectorx.
Windows 10 22H2 19045.2251
PowerShell 5.1.19041.1682
个人测试原因:stdout
中含有在 PowerShell Profile 中自定义的 Write-Output
from cefdetectorx.
一种适用于我的情况(并且有点扭曲)的修复方法:
- const getExeIcon = file => execAsync('powershell -Command "Add-Type -AssemblyName System.Drawing;$S=New-Object System.IO.MemoryStream;' +
- `[System.Drawing.Icon]::ExtractAssociatedIcon('${file}').ToBitmap().Save($S,[System.Drawing.Imaging.ImageFormat]::Png);$B=$S.ToArray();$S.Flush();$S.Dispose();[convert]::ToBase64String($B)"`)
- .then(({ stdout }) => 'data:image/png;base64,' + stdout)
+ const getExeIcon = file => execAsync('powershell -Command "Write-Output ^^^;Add-Type -AssemblyName System.Drawing;$S=New-Object System.IO.MemoryStream;' +
+ `[System.Drawing.Icon]::ExtractAssociatedIcon('${file}').ToBitmap().Save($S,[System.Drawing.Imaging.ImageFormat]::Png);$B=$S.ToArray();$S.Flush();$S.Dispose();[convert]::ToBase64String($B);Write-Output ^^^"`)
+ .then(({ stdout }) => 'data:image/png;base64,' + stdout.split('^^^')[1])
from cefdetectorx.
Fixed in 0.0.2
from cefdetectorx.
Related Issues (20)
- 无法运行Cannot Run the program HOT 3
- [建议]一些关于正确识别应用程序名称的建议
- ffmpeg.exe 怎么 chromium 了 (恼 HOT 2
- [FeatureRequest]增加扫描进度条 HOT 2
- 建议增加功能:检测该系统有多少ffmpeg库,多少份python,并列出版本号 HOT 2
- 展示你的cef数量
- 展示你的cef数量
- 这简介挺赛里斯特色后现代的。
- Holp macos users can use this awesome app 🙏 HOT 1
- 不支持Everything64位版本 HOT 3
- 不支持EleQQ(Windows) HOT 1
- 来点Linux版本的 HOT 2
- 展示你的cef数量
- 草,不查不知道(
- 展示你的cef数量
- win7无法使用 HOT 2
- 展示你的cef数量
- Releases中的CefDetectorX.zip会播放bgm HOT 1
- 展示你的cef数量
- no mac ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cefdetectorx.