Summary: | Missing MSVCP140.dll and VCRUNTIME140.dll (was: Parameters being ignored) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Snoretoast | Reporter: | Daniel <daniel> |
Component: | general | Assignee: | Hannah von Reth <vonreth> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daniel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Daniel
2019-06-24 11:36:05 UTC
yes we need a proper arg parser... do you know something lightweight which supports wchar? Read your report again. SnoreToast.exe -h Welcome to SnoreToast 0.5.99. A command line application capable of creating Windows Toast notifications. ---- Usage ---- SnoreToast [Options] ---- Options ---- [-t] <title string> | Displayed on the first line of the toast. [-m] <message string> | Displayed on the remaining lines, wrapped. [-b] <button1;button2 string>| Displayed on the bottom line, can list multiple buttons separated by ; [-tb] | Displayed a textbox on the bottom line, only if buttons are not presented. [-p] <image URI> | Display toast with an image, local files only. [-id] <id> | sets the id for a notification to be able to close it later. [-s] <sound URI> | Sets the sound of the notifications, for possible values see http://msdn.microsoft.com/en-us/library/windows/apps/hh761492.aspx. [-silent] | Don't play a sound file when showing the notifications. [-appID] <App.ID> | Don't create a shortcut but use the provided app id. [-pipeName] <\.\pipe\pipeName\> | Provide a name pipe which is used for callbacks. [-application] <C:\foo.exe> | Provide a application that might be started if the pipe does not exist. -close <id> | Closes a currently displayed notification. -install <name> <application> <appID>| Creates a shortcut <name> in the start menu which point to the executable <application>, appID used for the notifications. -v | Print the version and copying information. -h | Print these instructions. Same as no args. Exit Status : Exit Code Failed : -1 Success : 0 Hidden : 1 Dismissed : 2 TimedOut : 3 ButtonPressed : 4 TextEntered : 5 ---- Image Notes ---- Images must be .png with: maximum dimensions of 1024x1024 size <= 200kb These limitations are due to the Toast notification system. -------------------- SnoreToast.exe -v SnoreToast version 0.5.99 Copyright (C) 2019 Hannah von Reth <vonreth@kde.org> SnoreToast is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ----- The new version is always a gui application but if its run a console window it prints to it. Huh. Interestingly, I am now getting error messages that I did not get last time. I guess this explains why parameters won't work. Here they are (came as popups). Am I missing any dependencies? ``` The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem. ``` ``` The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem. ``` Haha. Ok. I did not have the Microsoft Visual C++ Redistributable installed. Maybe this should be hinted somewhere as a dependency. For future reference, download here: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Hi, in difference to the old build the runtime was not statically linked. I think for something like snoretoast it makes sense to link it statically so https://github.com/KDE/snoretoast/commit/087de58cac44db8c325ca96061e1b55242a29080 should fix the issue. Great! Thanks for the fix. |