! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Port to Gio & Udev
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-places-plugin
Component:
General

Comments

Description Mathias Brodala 2010-08-25 07:12:32 CEST
Since Thunar itself now uses Gio and Udev for device handling, the places plugin should follow and use the same framework. This would make the dependency on ThunarVFS obsolete and would allow me to get rid of HAL for good.
Comment 1 Diego Ongaro 2010-09-01 06:06:55 CEST
*** Bug 6674 has been marked as a duplicate of this bug. ***
Comment 2 Diego Ongaro 2010-09-01 06:09:37 CEST
Yes, you're absolutely right, places needs to be ported over. Let me know if you want to work on this; my time for the project has been quite limited lately.
Comment 3 Yves-Alexis Perez editbugs 2010-09-01 08:21:39 CEST
Damn, bugzilla (and/or me) really has searches issues. Sorry for duplicate.

No I don't really have time to port it (I barely have time to maintain Xfce stuff these days) but thought it'd be nice to track it, except I didn't see it was already tracked.

For people interested, it might be worth giving some infos about the current state (how it is done at the moment) and how it should be done in a Gio world (the latter needing info from people aware, maybe Jannis could give some doc?)

Cheers and thanks for your work.
Comment 4 Jannis Pohlmann editbugs 2010-09-01 12:10:42 CEST
I haven't looked at the code yet but I remember the plugin vaguely and it should be as simple as replacing the portions of code related to thunar-vfs with usages of GIO. I don't think there's anything special (like integrating udev) that needs to be taken care of.
Comment 5 Lionel Le Folgoc 2010-12-11 11:56:13 CET
*** Bug 6966 has been marked as a duplicate of this bug. ***
Comment 6 Florian Rivoal editbugs 2010-12-11 16:56:52 CET
I use places myself, so I'll be sure to get to this eventually. But if someone can contribute a patch before I get there, that would be great.
Comment 7 Jan Rękorajski 2011-02-22 01:04:49 CET
Created attachment 3497 
port to gio

Here is the patch :)
Please check and test, this patch is a shameless rip from xfdesktop.
Comment 8 Mathias Brodala 2011-02-22 18:08:56 CET
(In reply to comment #7)
> Created attachment 3497 
> port to gio
> 
> Here is the patch :)
> Please check and test, this patch is a shameless rip from xfdesktop.

What to apply this patch to? Neither the latest 1.2.0 nor the latest git seems to work. Here’s the output from trying to patch the git version:

patching file config.h.in
Hunk #2 succeeded at 67 with fuzz 2 (offset 4 lines).
Hunk #3 succeeded at 92 with fuzz 2 (offset 7 lines).
patching file configure.in
Hunk #1 FAILED at 15.
1 out of 1 hunk FAILED -- saving rejects to file configure.in.rej
patching file panel-plugin/Makefile.am
Hunk #3 FAILED at 47.
1 out of 3 hunks FAILED -- saving rejects to file panel-plugin/Makefile.am.rej
patching file panel-plugin/model.h
patching file panel-plugin/model_system.c
patching file panel-plugin/model_user.c
patching file panel-plugin/model_volumes.c
Hunk #5 FAILED at 405.
Hunk #6 succeeded at 420 (offset 3 lines).
Hunk #7 succeeded at 474 (offset 3 lines).
Hunk #8 succeeded at 484 (offset 3 lines).
Hunk #9 succeeded at 518 (offset 3 lines).
Hunk #10 succeeded at 540 (offset 3 lines).
Hunk #11 succeeded at 548 (offset 3 lines).
1 out of 11 hunks FAILED -- saving rejects to file panel-plugin/model_volumes.c.rej
patching file panel-plugin/model_volumes_notify.c
patching file panel-plugin/model_volumes_notify.h
patching file panel-plugin/view.c
Hunk #1 succeeded at 59 (offset 2 lines).
Hunk #2 succeeded at 69 (offset 2 lines).
Hunk #3 succeeded at 458 (offset 2 lines).
Hunk #4 FAILED at 541.
Hunk #5 succeeded at 950 (offset -10 lines).
1 out of 5 hunks FAILED -- saving rejects to file panel-plugin/view.c.rej
patching file panel-plugin/xfce46-compat.c
patching file panel-plugin/xfce46-compat.h
Comment 9 Jan Rękorajski 2011-02-23 22:36:49 CET
Created attachment 3507 
patch for clean 1.2.0

This patch applies to clean 1.2.0 sources.
Comment 10 Jan Rękorajski 2011-02-23 22:38:13 CET
(In reply to comment #8)
> (In reply to comment #7)
> > Created attachment 3497 
> > port to gio
> > 
> > Here is the patch :)
> > Please check and test, this patch is a shameless rip from xfdesktop.
> 
> What to apply this patch to? Neither the latest 1.2.0 nor the latest git seems
> to work. Here’s the output from trying to patch the git version:
> 

It applies to 1.2.0 on top of exo-1 (id:5754) and libxfce4ui (id:7317) patches.
I added a patch for clean 1.2.0 sources.
Comment 11 sledgehammer_999 2011-05-26 21:36:42 CEST
Would you guys be interested in a complete rewrite instead? (using C++ and gtkmm/glibmm)
Comment 12 Yves-Alexis Perez editbugs 2011-05-26 21:39:26 CEST
(In reply to comment #11)
> Would you guys be interested in a complete rewrite instead? (using C++ and
> gtkmm/glibmm)

Definitely not.
Comment 13 Jannis Pohlmann editbugs 2011-05-26 21:41:28 CEST
Let's put it this way: we don't use C++ anywhere in Xfce core, so if it can be avoided, extensions should be written without additional dependencies/libraries to be loaded.
Comment 14 sledgehammer_999 2011-05-26 22:14:58 CEST
Ok. I totally get Jannis Pohlmann's reasons. But from Yves-Alexis Perez's reply I have to ask this. Is the Xfce's team stance against C++(in general) the same as the Gnome's/Gtk's team? (not exactly hating it but not actively supporting it etc etc)
Comment 15 Yves-Alexis Perez editbugs 2011-05-26 22:21:11 CEST
(In reply to comment #14)
> Ok. I totally get Jannis Pohlmann's reasons. But from Yves-Alexis Perez's reply
> I have to ask this. Is the Xfce's team stance against C++(in general) the same
> as the Gnome's/Gtk's team? (not exactly hating it but not actively supporting
> it etc etc)

(note that I'm not in the Xfce team, not as an active developer at least, I'm a Debian maintainer)

As Jannis said, the whole Xfce stack uses C/GTK+. C++ and Gtkmm looks to me more like a cludge.

Personally, I'm really not a huge fan of C++, but there are people using Vala, in case you'd  be interested.
Comment 16 Jannis Pohlmann editbugs 2011-05-26 22:30:11 CEST
We evenhave our own GLib/GTK+ C++ bindings but they are not really actively maintained, I think, and they are not used anywhere. We also don't use glibmm/gtkmm anywhere as it makes little sense for us. 

The benefit of C++ over C is rather small overall.
Comment 17 sledgehammer_999 2011-05-26 22:33:27 CEST
I'd love to continue this but I don't want to pollute the bug report. 
For now, I hope that the patch gets finally in git. It seems to work fine in Debian. But before that please clean up the code that is related to this report of mine: https://bugzilla.xfce.org/show_bug.cgi?id=7666
Comment 18 Landry Breuil editbugs 2014-11-23 21:43:07 CET
Mass-reassign all bugs from florian@ to goodies-dev@, thanks for the maintenance work! (and sorry for the bugmail spam..)

Bug #6663

Reported by:
Mathias Brodala
Reported on: 2010-08-25
Last modified on: 2019-05-23
Duplicates (2):
  • 6674 port to GIO/ Thunar 1.1
  • 6966 places plugin doesn't work with exo/Thunar from 4.8

People

Assignee:
Xfce-Goodies Maintainers
CC List:
8 users

Version

Version:
unspecified

Attachments

port to gio (57.32 KB, patch)
2011-02-22 01:04 CET , Jan Rękorajski
no flags
patch for clean 1.2.0 (57.32 KB, patch)
2011-02-23 22:36 CET , Jan Rękorajski
no flags

Additional information