You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+52-3
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,12 @@ This library is packaged with [ntfy-desktop](https://github.com/Aetherinox/ntfy-
69
69
-[Create App Shortcut](#create-app-shortcut)
70
70
-[Call App](#call-app)
71
71
-[Help](#help)
72
+
-[How to change text `NtfyToast` at the top of notifications](#how-to-change-text-ntfytoast-at-the-top-of-notifications)
73
+
-[Can't use Windows Toast notifications in WSL2](#cant-use-windows-toast-notifications-in-wsl2)
74
+
-[Distributing Toasted-Notifer with Electron](#distributing-toasted-notifer-with-electron)
75
+
-[Using Webpack](#using-webpack)
76
+
-[Windows: Where are shortcut / .lnk files placed](#windows-where-are-shortcut--lnk-files-placed)
77
+
-[Usage in tmux session](#usage-in-tmux-session)
72
78
73
79
74
80
<br />
@@ -692,14 +698,14 @@ With the above code, we have specified an `appID` on the following line:
692
698
<br />
693
699
694
700
## Help
695
-
- How do I change the text `NtfyToast` at the top of the notification
701
+
###How to change text `NtfyToast` at the top of notifications
696
702
In order to change the text `NtfyToast`, you must supply an `-appID`. Windows Toast notifications require that you provide an application id for a valid Windows application before Windows will allow you to link another program.
697
703
698
704
For instructions on accomplishing this, read the section [appID support](#appid-support)
699
705
700
706
<br />
701
707
702
-
- Can't use Windows Toast notifications in WSL2
708
+
###Can't use Windows Toast notifications in WSL2
703
709
Ntfy makes use of a 3rd party package for Windows notifications to work. You must change the permissions on the Ntfy vendor .exe in order for it to work properly.
704
710
705
711
@@ -718,7 +724,7 @@ You can add a `postinstall` action in the `package.json`:
718
724
719
725
<br />
720
726
721
-
- Distributing Toasted-Notifer with Electron
727
+
### Distributing Toasted-Notifer with Electron
722
728
If you package your Electron based app as an asar; toasted-notifier will fail to load. This is because of how a asar package works. You cannot execute a binary from within an asar package.
723
729
724
730
Is solution is that when packaging the app into an asar, make sure you `--unpack` the `vendor/` folder of toasted-notifier so that the module still has access to the notification vendor binaries.
@@ -744,6 +750,49 @@ build: {
744
750
745
751
<br />
746
752
753
+
### Using Webpack
754
+
When using toasted-notifier inside of webpack, you must add the snippet below to your `webpack.config.js`.
755
+
756
+
```javascript
757
+
node: {
758
+
__filename: true,
759
+
__dirname: true
760
+
}
761
+
```
762
+
763
+
This is necessary because toasted-notifier loads the notifiers from a binary, and needs a relative file path. When webpack compiles the modules, it suppresses file directories, causing toasted-notifier to error on certain platforms.
764
+
765
+
<br />
766
+
767
+
### Windows: Where are shortcut / .lnk files placed
768
+
In order for you to make your own custom application name appear at the top of a notification, you must create a `.lnk` in your Windows start menu. More about this is outlined in the section [AppID Support](#appid-support)
769
+
770
+
<br />
771
+
772
+
If you need to delete any of the generated `.lnk` files, you can find them in the following locations:
0 commit comments