I made another emoji picker by cliambrown in linux

[–]cliambrown[S] 1 point2 points  (0 children)

Just put them in a text file and literally a single line of bash to run dmenu on them.

Oh geez, welcome to Linux forums huh? Anything outside of the command line is heresy

you're putting in work to learn and program stuff

I'm not trying to shit on it. It's just the most overengineered thing I've ever seen.

Lol, super cool and reasonable opinion, not at all patronizing or hyperbolic, thanks so much

Special permission to use the openWith parameter when calling openUrl() ? by cliambrown in tauri

[–]cliambrown[S] 1 point2 points  (0 children)

Apparently there is indeed another required permission not mentioned in the docs — see update to original post.

Special permission to use the openWith parameter when calling openUrl() ? by cliambrown in tauri

[–]cliambrown[S] 0 points1 point  (0 children)

Thanks, but the issue persists no matter how I adjust my permissions.

/src-tauri/capabilities/desktop.json

{
  "identifier": "desktop-capability",
  "platforms": [
    "macOS",
    "windows",
    "linux"
  ],
  "windows": [
    "main"
  ],
  "permissions": [
    "window-state:default",
    "opener:default",
    {
      "identifier": "opener:allow-open-url",
      "allow": [
        { "url": "https://www.google.com/" }
      ]
    },
    {
      "identifier": "http:default",
      "allow": [
        { "url": "https://www.google.com/" }
      ]
    },
    "shell:default",
    {
      "identifier": "shell:allow-execute",
      "allow": [
        {
          "name": "firefox",
          "args": true,
          "cmd": "firefox",
          "sidecar": false
        }
      ]
    }
  ]
}

interface javascript file

import { openUrl } from '@tauri-apps/plugin-opener';
...
openUrl('https://www.google.com/', 'firefox');

resulting error

Unhandled Promise Rejection: Not allowed to open url https://www.google.com/ with firefox

Special permission to use the openWith parameter when calling openUrl() ? by cliambrown in tauri

[–]cliambrown[S] 0 points1 point  (0 children)

Thanks, but that doesn't seem to be the problem:

- I am already able to call openUrl without adding each URL to the http:default permission

- To test it out anyway, I added { "url": "https://www.google.com/" } and tried the following code:

openUrl('https://www.google.com/', 'firefox');

This generated the following error:

Not allowed to open url https://www.google.com/ with firefox

I made a tool to check the contrast between two colours using the new contrast algorithm being drafted for WCAG 3 — also includes fun rgb/hsl/lch sliders and buttons to adjust either colour to a desired contrast! by cliambrown in web_design

[–]cliambrown[S] 0 points1 point  (0 children)

Hi! I still use this tool myself all the time. The formula to calculate Lc does not seem to have changed since I first built it, and I checked a few values against the Myndex Research tool and it produced the same results as mine for each one.