Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration file not in "expected location" #18

Open
rafaelhlima opened this issue Feb 8, 2022 · 7 comments
Open

Configuration file not in "expected location" #18

rafaelhlima opened this issue Feb 8, 2022 · 7 comments

Comments

@rafaelhlima
Copy link

Hi! I installed the Sticky Window Snapping extension and ran the commands bellow so that the configuration dialog would appear in System Settings.

mkdir --parents ~/.local/share/kservices5/
ln --relative --symbolic ~/.local/share/kwin/scripts/sticky-window-snapping/metadata.desktop ~/.local/share/kservices5/kwin-script-sticky-window-snapping.desktop

After restarting System Settings the "Configure" button does appear, but when I click it I get the following error message: "Plugin does not provide configuration file in expected location".
Sticky_edges

The plugin itself is working, but I cannot change any settings.

I installed version 1.0.1 of the plugin. Below is my system info:

Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660/PCIe/SSE2

@Flupp
Copy link
Owner

Flupp commented Feb 12, 2022

I can reproduce the problem. It is also currently discussed in the KDE bug tracker.

I do not know yet what is the preferred solution. In the meantime, you can try branch metadata.json (c890dca). (I’ll remove the branch as soon as the problem is solved.)

@nclarius
Copy link

Does this work for you? When I just add the json file while keeping the desktop one I'm getting the same error. When I empty the contents of the metadata.desktop or delete the file altogether, the script will not show up in the list of KWin scripts at all, even when I link the metadata.json instead. Did I miss a step?

@Flupp
Copy link
Owner

Flupp commented Feb 13, 2022

The above mentioned branch works for me. A simple kpackagetool5 --install package in the root of the repo does the trick. (No symlink hackery necessary in contrast to the old metadata.desktop approach.) Maybe double check that no files from previous installations are left.

@nclarius
Copy link

Thanks, that did the trick. Though https://bugs.kde.org/show_bug.cgi?id=444378#c6 is my preferred solution now.

@nclarius
Copy link

nclarius commented Feb 15, 2022

I have no second system to test my scripts on, so if I may ask, re. your comment in the bug report:

Did I understand it correctly that

  • in 5.24, the error message occurs when X-KDE-ConfigModule=... is not present, and
  • in < 5.24, the error message occurs when X-KDE-ConfigModule=... is present?

So it can only ever work with one of the versions?

@rafaelhlima
Copy link
Author

Hi! Weirdly enough the bug disappeared after frameworks got updated to 5.91. Can this be related?

I have just clicked the Configure button and the settings dialog appeared.

@alex1701c
Copy link

https://invent.kde.org/frameworks/kcmutils/-/commit/60ac2bf394c9cd8a142698332ffdbee55a61e705 That should have fixed it.

The issue was, that because of the symlinking the compatibility code path in kcmutils was used and there this one key was missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants