Skip to content

Instantly share code, notes, and snippets.

@vishal2612200
Last active August 23, 2021 17:12
Show Gist options
  • Save vishal2612200/1b9e368517b215ef0e226d2ed19a1b2d to your computer and use it in GitHub Desktop.
Save vishal2612200/1b9e368517b215ef0e226d2ed19a1b2d to your computer and use it in GitHub Desktop.
GSOC 2021 WITH XFCE

FINAL WORDS ON GSOC 2021 WITH XFCE

Student: Vishal Sharma

Organisation: XFCE

GSOC Year: 2021

Mentor: @itsmanjeet

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.

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

Few Contribution to XFCE, other than sample/skeleton Plugin

Blog's during the GSOC

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment