Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3847

Raspberry Pi OS • Re: Keyboard layout displaying/switching for Wayfire and wf-panel-pi

$
0
0
Hello to anyone following this thread,

I have updated my release of wf-panel-pi (kbdlayout branch) to be up-to-date with version 0.91 from Simon.

One slight change in the installation process that the new version brings is this: during the changes done lately (I missed the exact version), wf-panel-pi has been modified so that, instead of a monolith, it now consists of a core ("the panel") and the plugins, which are compiled into shared libraries (each with the name lib<plugin>.so, for example, "libclock.so" for "clock"), and installed under /usr/lib/aarch64-linux-gnu/wf-panel-pi .

The consequence of this is that, if you build with the instructions given:

Code:

$ git clone https://github.com/avarvit/wf-panel-pi.git$ cd wf-panel-pi$ git switch kbdlayout$ meson setup builddir --prefix=/usr --libdir=/usr/lib/aarch64-linux-gnu/$ cd builddir$ meson compile
(and assuming that everything goes well with the build) the resulting binary ./src/panel/wf-panel-pi will not find the widget plugins, if you do not have the stock wf-panel-pi installed. or, if you have it, it will just fail to find the shared library for my kbdlayout plugin. You may notice the following error if you run the compiled wf-panel-pi:

Code:

$ ./src/panel/wf-panel-pi<several lines of output>Could not open plugin - /usr/lib/aarch64-linux-gnu/wf-panel-pi/libkbdlayout.so: cannot open shared object file: No such file or directory
Of course, if you do not have the stock wf-panel-pi installed (or you want to uninstall it), a global install:

Code:

$ sudo meson install
will do the job; however, if you do have the stock wf-panel-pi installed and do not wish to overwrite it with mine, instead you just want to test the latter, you can just install manually my kbdlayout.so plugin's shared library and try to run the binary:

Code:

$ sudo install -c -o root -g root src/widgets/kbdlayout/libkbdlayout.so /usr/lib/aarch64-linux-gnu/wf-panel-pi/$ ./src/panel/wf-panel-pi
The error line must disappear and you must be able to use (add and configure) my kbdlayout plugin. Needless to say that the install of the shared library for my kbdlayout plugin does not harm nor otherwise affects the stock wf-panel-pi.

That said, there is still that annoying issue of my kbdlayout plugin not working under labwc. But I will devote a post to this later.

Statistics: Posted by avarvit — Mon Nov 18, 2024 6:18 pm



Viewing all articles
Browse latest Browse all 3847

Trending Articles