[haiku-development] How to see changes of `input_server`?

  • From: Preetpal Kaur <preetpalok123@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 23 Jun 2020 00:40:47 +0530

Hi!

Hope so you all are fine!

As I am working on the task which is to set the different settings for
each mouse that are connected.

I have made changes in the file "src/servers/input/MouseSettings.cpp"
and compile it by using this command "jam -q input_server" and it
makes a file in
"../generated/objects/haiku/x86_64/release/servers/input/input_server".
Now, how that haiku will know about it or where I have to paste this
file to test the changes that I have made?

PulkoMandy told me some ideas:

1.) To build a new haiku package (jam -q haiku.hpkg) and install that
(using pkgman install) and reboot haiku to test. But its too much
time-consuming.
2.) Maybe the file exits in the  "/system/non-packaged/servers/" out
I'm not sure if that will work.
I am using haiku in the virtual box. While following this option in
haiku there is no directory named as "servers" in
"/boot/system/non-packaged/".
Then, I made the directory named as "servers" and paste this
"../generated/objects/haiku/x86_64/release/servers/input/input_server"
file in it. After restarting the haiku, again I run the input
preferences and go to the path "/boot/system/var/log". Here is the
file "syslog" which stores the logs. But unfortunately, the output was
not as expected. My log statement is not present that I have written
in the "src/servers/input/MouseSettings.cpp"
(`MouseSettings::MouseSettings()`) file using "syslog" statement.

Then, by using the command "updatedb && locate input_server", the output is:

https://imgur.com/a/aDVWY7C

Here is the file in "/boot/system/servers/input_server". I tried to
move this file to input_server.backup but it is the read-only file
system.

https://imgur.com/a/qFJx1oq

Also, there is no environment variable which holds the path of servers
(similar like $LIBRARY_PATH).


-- 
Preetpal Kaur
https://preetpalk.wordpress.com/
https://github.com/Preetpalkaur3701
https://twitter.com/PreetpalKaur17
https://www.youtube.com/channel/UCcfd0YJpm-5YTrcX2XEq_Jg?view_as=subscriber

Other related posts: