Templater
Templater copied to clipboard
tp.system.clipboard() not working on child windows on KDE Plasma
- OS: Kubuntu 22.10
- Templater version: 1.16.0
- Obsidian version: Obsidian v1.1.15
- Templater settings:
Describe the bug
tp.system.clipboard()
is not working on the child windows but it is working on the main window.
It throws the error: plugin:templater-obsidian:61 Templater Error: Template parsing error, aborting. Read permission denied.
I ran ./Obsidian-1.1.15.appimage
in my terminal. It throws the error Blocked permission request about:blank clipboard-read.
Workaround that I am using:
const execSync = require('child_process').execSync;
const url = String(execSync("xclip -o -sel clip"))
Using the command line to fetch clipboard cotents
Thanks for raising the issue, am having the same problem in the child windows. I am working with same versions of Templator and Obsidian on the OS - NixOS 22.11.2651.e19f25b587f (Raccoon).
For me it works with both windows and ubuntu 22.04. No issues. I have the same obsidian and templater version as mentioned
I do not have any special templater settings beside setting a default folder
For me it works with both windows and ubuntu 22.04. No issues. I have the same obsidian and templater version as mentioned
I do not have any special templater settings beside setting a default folder
Hey can you confirm if you are running it in the child or main window.
Child
Child
On Ubuntu, how did you install obsidian, via snap
, flatpak
, appimage
or .deb
?
I'm sorry. I should have added that I use appimage on Ubuntu
I'm sorry. I should have added that I use appimage on Ubuntu
2023-02-23 11:57:27 Loading main app package /tmp/.mount_ObsidiugaAJe/resources/obsidian.asar
xdg-mime: application argument missing
Try 'xdg-mime --help' for more information.
2023-02-23 11:57:31 Checking for update using Github
2023-02-23 11:57:31 Success.
2023-02-23 11:57:31 Latest version is 1.1.15
2023-02-23 11:57:31 App is up to date.
(electron) The new-window event is deprecated and will be removed. Please use contents.setWindowOpenHandler() instead.
(electron) The new-window event is deprecated and will be removed. Please use contents.setWindowOpenHandler() instead.
Blocked permission request about:blank clipboard-read
The last line says that Blocked permission request about:blank clipboard-read
.
I ran ./Obsidian-1.1.15.appimage
in my terminal
I tested the same on Windows 10 and the problem doesn't seem to be there. Thanks for helping out @ItsWuotan @PulakshG, can you confirm if your DE is KDE plasma, because that is the DE that I have, and I hypothize that is what is maybe causing the issue
yes I am using KDE, sorry shouldve mentioned earlier. Can you update here if you find any solution. Thank you
I have reverted to using Obsidian v1.1.9, installed via AppImage. It is working fine on the older version
Workaround that I am using:
const execSync = require('child_process').execSync;
const url = String(execSync("xclip -o -sel clip"))
Using the command line to fetch clipboard cotents
Also, I had to re-install templater to get it working again
https://forum.obsidian.md/t/obsidian-release-v1-2-8/59086
Fixed in v1.2.8. Haven't tested it yet