Final blog during GSOC 2021 with XFCE

0
3 min read

It was great to be a part of XFCE community during the GSOC 2021. Some things get placed on right place and some didn’t, but moving forward with lot of learning and new concept related to XFCE. This was my first interaction with the GTK world and XFCE Panel plugin. I have explored different ways to implement things, some works and others doesn’t.

Here ways you can avoid to try out while developing XFCE panel plugin with Python and Javascript.

Method 1: Go all out with Python or Javascript rather than GTKSocket and GTKPlug with Libxfcepanel.

Yes, It is true that you can access most of the function or XFCE API through the usage of Libxfcepanel in python. But You would not be able to register panel with this method, due to unavailability of access to XFCE_PANEL_PLUGIN_REGISTER macros inside Libxfcepanel through panel. So, Even after implementing whole plugin with python, you would not be able to register inside a XFCE Panel, leaving your all your efforts as wastage.

Method 2: Move forward with GTKSocket and GTKPlug approach, But handing of XFCE Panel API will be done inside the Python or Javascript Part.

It would be bad approach as you would not be able to access XFCE panel plugin object inside python or javascript part in any way. And most API are based on XFCE panel plugin object, If you are able to find out any way to acess XFCE Panel Plugin pointer lying currently on a GTKSocket part inside a GTKPlug part then you it would be possible to move possible with this approach otherwise, you will not. Accessing C pointer inside a python or javascript is not a simple thing to implement.

Current Challenge: We are trying to use the concept of Dbus for handling of XFCE Panel API and signal inside a GTKSocket part, This approach is successfull in lot of API acess, but it have some challenge with menu registration.

For example, Basic requirement for right click XFCE menu is that you would have to pass GTKWidget as an argument of “xfce_panel_plugin_add_action_widget”, But You when you try to access GTKPlug through GTKSocket part, it does not return GTKPlug as an child of GTKSocket, making it difficult to access GTKPlug widget inside a GTKSocket part. This problem still remaining to solve out.

Here is an URL to the Sample Plugin with Python and Javascript.

https://gitlab.xfce.org/vishal2612200/gio-xfce-panel-plugin-samples

Here is an google doc url for documentation related to this URL.

https://docs.google.com/document/d/1BzfI7V0vZGLWtLUBSVCPwZiWZwLL01TjzzFM7FTP4M4/edit?usp=sharing

Few Contribution to XFCE, other than sample/skeleton Plugin

Blog during the GSOC

This is not an end here, looking out to contribute more after the GSOC also. Thanks to all mentors, Yosuf Phillips and itsmanjeet for your valuable support 🙂

Choose your Reaction!
Leave a Comment