Commit Graph

40 Commits

Author SHA1 Message Date
Lucas De Marchi f8a2dd4d95 Rename edbus->eldbus 2013-04-23 12:37:43 -03:00
Lucas De Marchi 9187778f32 Revert "fix edbus message refcounting in udisks efm backend"
This reverts commit 0f9336b105.

Message is automatically unrefd by edbus_connection_send() if it is was
successfully sent.
2013-02-28 15:41:49 -03:00
Mike Blumenkrantz c7482d9b7d fix edbus crash in udisks efm backend 2013-02-25 09:22:29 +00:00
Mike Blumenkrantz 0f9336b105 fix edbus message refcounting in udisks efm backend 2013-02-25 09:22:15 +00:00
Mike McCormack 66c08a536d e: Remove unused variable warnings
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 82966
2013-01-18 06:45:55 +00:00
Lucas De Marchi a37c6ca20f e: follow edbus change about unref'ing messages after send
Don't unref the messages after calling edbus_*_send() since edbus
automatically unrefs them. It was also impressive the number of places
that were not unrefing the message when they should.



SVN revision: 82808
2013-01-15 14:34:50 +00:00
Lucas De Marchi 9e1b995c56 e: small fixes to port of e_fm udisk to edbus
- no need for calling edbus_message_error_get() if we are not getting
   the error message
 - rename confusing vars:
 	* A dict is this complete type: "a{sv}", i.e. an array with
	  key-values pairs (though the value could very well be 's', or
	  'u' or another basic type)
	* An entry (or dict_entry, or de) is *the* key-value pair.
 - Use eina_stringshare_replace when possible



SVN revision: 81986
2013-01-02 13:16:24 +00:00
José Roberto de Souza 5e4352e9b3 e: e_fm udisk ported to edbus
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81985
2013-01-02 13:16:19 +00:00
Mike Blumenkrantz 362531b082 Dear all,
I'm attaching a patch for some minor bugs in the e17.
 Please take a look at attached patch.

 01. missing E_FREE(inst)
     File: src/bin/e_exec.c: 347
     Function: _e_exec_cb_exec

 02. missing null check
     File: src/bin/e_fm.c: 10173
     Function: _e_fm_error_dialog
     I'm not sure, but all other codes always check the return
     value of e_fm2_op_registry_entry_get except here.

 03. missing free(slave)
     File: src/bin/e_fm_ipc.c: 804
     Function: _e_fm_ipc_slave_run

 04. eina_list_remove after free
     File: src/bin/e_fm/e_fm_ipc.c :1325
     Function: _e_fm_ipc_cb_fop_trash_idler

 05. invalid check for _udisks_del, it might be _udisks_chg.
     File: src/bin/e_fm/e_fm_main_udisks.c : 162
     Function: _e_fm_main_udisks_test

 06. uninitialized gx and gy values
     File: src/bin/e_gadcon_popup.c: 172
     Function: _e_gadcon_popup_position
     These could be changed in e_gadcon_client_geometry_get
     if gcc->o_base is null.

 07. unnecessary code 'evas = e_win_evas_get(dia->win)'
     File: src/bin/e_import_config_dialog.c: 456
     Function: e_import_config_dialog_show

 08. missing free(sizes)
     src/bin/e_randr_11_serialization.c: 136
     Function: _11_try_restore_configuration()

 09. unnecessary variable output_info
     File: src/bin/e_randr_12.c: 560
     Function: _output_property_change_event_cb

 10. eina_list_remove after free
     File: src/bin/e_randr_12_serialization.c : 357
     Function: _12_serialized_setup_update

 11. no check of the return value of symlink.
     File: src/bin/e_widget_fsel.c: 84
     Function: _e_wid_fsel_favorites_add

 12. no evr->var check before comparing string values
     File: src/modules/conf_applications/e_int_config_defapps.c: 432
     Function: _basic_apply

 13. missing error message or check return value of edje_file_group_exists
     File: src/modules/conf_theme/e_int_config_theme.c: 333
     Function: _open_test_cb
     Anyway, I've added e_util_dialog_show if failed. Is it okay?

 14. missing index range check
     File: src/modules/gadman/e_mod_config.c: 153
     Function: _cb_config
     It could read negative array index, because return value of
     e_widget_ilist_selected_get might be negative.

 BR,
 Gwanglim


SVN revision: 80020
2012-12-03 07:54:07 +00:00
Mike Blumenkrantz 676c71a2a1 efm now checks (on startup) for stale device links on desktop and tries to remove them
ticket #1689


SVN revision: 78608
2012-10-29 09:52:23 +00:00
Mike Blumenkrantz cbb742a7cc patch from Sergei Kabanov to fix possible crash in efm with udisks/hal backends
ticket #1529


SVN revision: 76814
2012-09-18 12:16:16 +00:00
Nicholas Hughart ff1224d07d e_fm: Correct mount options used for udisks mounting
udisks has a restricted set of mount options which can be
  used for most filesystems.  I have adjusted our mount
  options based on the current udisks code.



SVN revision: 73549
2012-07-11 05:52:56 +00:00
Mike Blumenkrantz 1a9f497be2 further unbork efm logging
SVN revision: 72997
2012-06-28 10:35:08 +00:00
Mike Blumenkrantz 3fb0b9c5ff unbork efm logging
SVN revision: 72996
2012-06-28 10:31:40 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz a67288fda3 more stringshare usage fixes, also fix detection for drives which are ejectable (cdroms)
fixes ticket #691


SVN revision: 72023
2012-06-12 12:57:45 +00:00
Mike Blumenkrantz a69db85b60 only print confusing error message on confusing errors
SVN revision: 72022
2012-06-12 12:39:10 +00:00
Mike Blumenkrantz 119b00b51f only print error messages on real errors
SVN revision: 72021
2012-06-12 12:32:30 +00:00
Mike Blumenkrantz 4275e53f59 fix udisks stringshare usage, print some error messages on failure so I can tell wtf is going on
SVN revision: 72020
2012-06-12 12:21:16 +00:00
Mike Blumenkrantz 4adf0b17e4 efm volume catch-all
SVN revision: 71948
2012-06-11 13:27:07 +00:00
Mike Blumenkrantz cd4539e642 more efm logging updates, only create signal handlers if they don't exist
SVN revision: 71947
2012-06-11 12:35:37 +00:00
Mike Blumenkrantz 33562f92a1 use eina_log for dbg messages, remove call to IdUsage which is never checked
SVN revision: 71943
2012-06-11 09:59:05 +00:00
Vincent Torri c24b9f7aee whitespaces--
SVN revision: 70188
2012-04-15 07:21:00 +00:00
Sergei Kabanov 761fb56e5f From: Sergei Kabanov <s.kabanov@yahoo.com>
Subject: [E-devel] Fix udisks support  for e17

as per advice of  Michael Blumenkrantz
sending this patch for testing.
With this patch external devices have icons on desktop,
and devices can me mounted/unmounted/ejected.



SVN revision: 69827
2012-04-01 14:56:51 +00:00
Mike Blumenkrantz 719917dbeb eeze mounting - 95% complete: needs some tweaks to get it working but I figured I'd commit now for people to play with since it shouldn't break anything...
SVN revision: 60855
2011-06-30 03:54:28 +00:00
Mike Blumenkrantz 18835fd017 another null deref
SVN revision: 56149
2011-01-16 01:26:51 +00:00
Mike Blumenkrantz baa156f189 okay, so to check for udisks I've done the following:
1) set a signal handler to watch for udisks starting
2) check for udisks already running
3) send dbus method call to udisks regardless of run state
4) free error which is 100% guaranteed to occur
5) either pick up udisks from signal handler or from random dbus call
6) finally start efm
7) drink heavily.


SVN revision: 56055
2011-01-12 01:44:08 +00:00
Mike Blumenkrantz e232eefc31 this should activate udisks if it wasn't previously running
SVN revision: 56054
2011-01-11 23:38:42 +00:00
Carsten Haitzler d8f3611ab1 make udev/eeze mounting and volumes work on ubuntu 10.04... :)
SVN revision: 55993
2011-01-08 17:30:38 +00:00
Mike Blumenkrantz 8babc3a6f0 the futile struggle to avoid blank device labels continues
SVN revision: 55991
2011-01-08 06:40:41 +00:00
Mike Blumenkrantz 9865da8663 better removable media detection
SVN revision: 55990
2011-01-08 06:28:55 +00:00
Mike Blumenkrantz 3e6ccf89ee NULL out pointers after op completes or fails
SVN revision: 55988
2011-01-08 05:55:25 +00:00
Mike Blumenkrantz 8d90d154f8 fix drive type detection
SVN revision: 55987
2011-01-08 05:14:19 +00:00
Mike Blumenkrantz 7396fa5d00 add some initial detection for luks encrypted fs types
SVN revision: 55962
2011-01-07 00:47:49 +00:00
Mike Blumenkrantz 7f3afa0d00 only track removable drives, add workaround for devices which are their own parent device
SVN revision: 55921
2011-01-06 03:53:34 +00:00
Mike Blumenkrantz ef105564ba with this commit, udisks mounting is now fully functional (wfm!) and has a number of benefits over the HAL backend, such as being able to automount media that's in your fstab
dev notes: changes to efm were required for this to work since udisks doesn't report back a mount point upon executing a mount command, so the actual dir listing/display must
be delayed by another callback until we actually know where the disk is to avoid opening a random directory


SVN revision: 55916
2011-01-06 01:35:41 +00:00
Mike Blumenkrantz 7aff5821e4 update to match api break in eukit
SVN revision: 55907
2011-01-05 22:31:57 +00:00
Mike Blumenkrantz e85d66f3c8 more udisks fixes, don't expect this to be managing your removables right now.
SVN revision: 55877
2011-01-05 09:49:27 +00:00
Mike Blumenkrantz 6c313086eb avoid setting null icon strings and actually listen on the right dbus interface :/
SVN revision: 55871
2011-01-05 06:32:30 +00:00
Mike Blumenkrantz 2b140621a8 and lo, there was udisks mounting support. maybe.
SVN revision: 55865
2011-01-05 05:46:33 +00:00