BelkaDev / KWinEdgeCommands

Add custom actions to Plasma screen edge.
5 stars 0 forks source link

Error at 53 - Trying to toggle Yakuake #1

Open ucelote-de-mar opened 1 year ago

ucelote-de-mar commented 1 year ago

I'm trying to add this command: Name: Toggle Yakuake Command: dbus-send --type=method_call --dest=org.kde.yakuake /yakuake/window org.kde.yakuake.toggleWindowState

I even tried sourcing a file but still.

I'm running Arch Linux up-to-date:

plasmashell 5.25.3
Qt: 5.15.5
KDE Frameworks: 5.96.0

This is the output on the terminal:

curl -s https://raw.githubusercontent.com/BelkaDev/KWinEdgeCommands/main/install.sh | sh
x:  750   y:  500   w:  300   h:  1200
x:  750   y:  500   w:  300   h:  1200
chmod: cannot access 'src/main.js': No such file or directory

Error at 53: chmod +x src/main.jsdbus[52869]: arguments to dbus_message_new_method_call() were incorrect, assertion "destination == NULL || _dbus_check_is_valid_bus_name (destination)" failed in file dbus-message.c line 1375.
This is normally a bug in some application using the D-Bus library.

dbus[52869]: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 3270.
This is normally a bug in some application using the D-Bus library.

dbus[52869]: arguments to dbus_message_set_allow_interactive_authorization() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 5278.
This is normally a bug in some application using the D-Bus library.

dbus[52869]: arguments to dbus_message_iter_init_append() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 2516.
This is normally a bug in some application using the D-Bus library.

QDBusConnection: error: could not send message to service "close" path "/" interface "org.freedesktop.DBus.Introspectable" member "Introspect": 
Error: org.freedesktop.DBus.Error.InvalidSignature
Unexpected reply signature: got "<empty signature>", expected "s" (QString)
BelkaDev commented 1 year ago

Hi, Can you run these commands and see what happens ?

npm i node $HOME/.local/share/kservices5/edgescript/   
node $HOME/.local/share/kservices5/edgescript/src/main.js
Fxsch commented 1 year ago

I have the same issue and running the first command just gives me these errors:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/nicojanzen/.local/share/kservices5/edgescript/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/nicojanzen/.local/share/kservices5/edgescript/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nicojanzen/.npm/_logs/2022-09-29T07_08_18_996Z-debug-0.log
BelkaDev commented 1 year ago

Can you wipe this directory $HOME/.local/share/kservices5/edgescript and try again?

2024-jcmljunior commented 1 year ago
julio@julio:~/build/KWinEdgeCommands$ ./install.sh
Cloning into '/tmp/tmp.z6QCQIEm1L'...
remote: Enumerating objects: 110, done.
remote: Counting objects: 100% (110/110), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 110 (delta 46), reused 69 (delta 19), pack-reused 0
Receiving objects: 100% (110/110), 55.69 KiB | 306.00 KiB/s, done.
Resolving deltas: 100% (46/46), done.
x:  750   y:  500   w:  300   h:  1200
x:  750   y:  500   w:  300   h:  1200
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.

added 181 packages, and audited 182 packages in 9s

39 packages are looking for funding
  run `npm fund` for details

1 critical severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> generic-kwin-command@1.0.0 bundle
> npm install && npm run compile && npm run package

up to date, audited 182 packages in 2s

39 packages are looking for funding
  run `npm fund` for details

1 critical severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> generic-kwin-command@1.0.0 compile
> scripts/compile.sh && browserify contents/code/source.js -o contents/code/main.js

> generic-kwin-command@1.0.0 package
> scripts/package.sh

/tmp/tmp.z6QCQIEm1L/kwinscript instalado com sucesso
npm notice 
npm notice New minor version of npm available! 8.15.0 -> 8.19.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.2
npm notice Run npm install -g npm@8.19.2 to update!
npm notice 

image