Commit Graph

118 Commits

Author SHA1 Message Date
Ian Lee 02149c903c patches to remove eukit and add device icon from D99 2013-05-07 11:17:03 +01:00
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
José Roberto de Souza 5655cbf8af e: Remove Hal backend from e_fm
Since Hal is deprecated since 2008 it's a bad idea wasting time porting
it to edbus.

Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 81984
2013-01-02 13:16:14 +00:00
Mike Blumenkrantz ae7ca9105f Hi,
here is a patch.

 1. free() already null-checks the passed argument, so it is not
    necessary to do 'if(x) free(x)'.

 2. Moved some '{free(x); x = NULL}' to E_FREE.

 3. In e_start_main.c, 'buf' is allocated with the size of the
    two arguments + '=', so we don't need to check for lenght;
    we should use sprintf().

 thanks
Maxime Villard


SVN revision: 81364
2012-12-19 14:20:34 +00:00
Carsten Haitzler 5ab8396f24 ok - strdupa make sure its defined after other includes in case,.. and
add to e_fm_ipc.c...



SVN revision: 81036
2012-12-16 01:17:45 +00:00
Mike Blumenkrantz 8347b33d9c more leaks gone in trash code that isn't used
SVN revision: 80924
2012-12-14 09:19:50 +00:00
Mike Blumenkrantz b48d65af00 fix lots of stupidity in efm daemon trash code that isn't even enabled
SVN revision: 80821
2012-12-13 11:18:26 +00:00
Mike Blumenkrantz 0743fd1ea2 fix efm daemon leak in every command made
SVN revision: 80820
2012-12-13 11:13:17 +00:00
Mike Blumenkrantz b2b336ed7d fix leak in efm daemon when reordering files
SVN revision: 80819
2012-12-13 11:10:01 +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
Sebastian Dransfeld 80b0b615b8 e: Cleanup
Fixes potential invalid memory reads.

Patch by Igor Murzov

SVN revision: 77491
2012-10-04 23:27:01 +00:00
Mike Blumenkrantz c310836bb3 add gui option for secure deletion in efm
SVN revision: 77434
2012-10-04 12:58:18 +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
Mike Blumenkrantz c9f7684c02 add fileman config option for new mv setting, also implement necessary backend features in efm slave for using mv operations
SVN revision: 76676
2012-09-14 15:14:41 +00:00
Mike Blumenkrantz 734ecb4dbb safeties for eeze mounting
SVN revision: 74904
2012-08-06 07:43:49 +00:00
Mike Blumenkrantz 8ad9126253 don't need to care if eeze doesn't find a device serial
SVN revision: 74899
2012-08-06 07:02:31 +00:00
Chidambar Zinnoury b196e15bed e fm prop: follow relative symbolic links before tagging them broken.
SVN revision: 74881
2012-08-05 08:55:59 +00:00
Mike Blumenkrantz f5c44485a8 some more eeze mounting cleanups
SVN revision: 74812
2012-08-02 16:55:47 +00:00
Mike Blumenkrantz 65433e79ee add extra check for volumes to avoid skipping ones we really want, also fix shadow warning
SVN revision: 74806
2012-08-02 14:57:05 +00:00
Mike Blumenkrantz 793145f2aa pointers are fixed now so getting data is safe again
SVN revision: 74783
2012-08-02 07:05:36 +00:00
Mike Blumenkrantz 05fd34c8bd fix efm dnd when filemanager widget is not positioned at 0,0, an icon's statinfo is now based on its source in case of link and desktop files, allow dnd onto link/desktop files as though they were the actual directory
SVN revision: 74729
2012-08-01 11:51:49 +00:00
Mike Blumenkrantz 0727364db1 fix unused warns when no mount backends enabled
SVN revision: 74575
2012-07-30 10:26:05 +00:00
Mike Blumenkrantz d84cdfe4f7 move eeze init check higher up so prefix doesn't leak
SVN revision: 74573
2012-07-30 10:17:03 +00:00
Mike Blumenkrantz 80f17bbcff don't try to delete mount points from e_fm anymore
SVN revision: 74570
2012-07-30 10:11:41 +00:00
Mike Blumenkrantz caa9f1b42b eeze is now back to mounting to /media/$devnode using noexec and nodev, also we now send an error message in another failure case
SVN revision: 74567
2012-07-30 10:01:49 +00:00
Carsten Haitzler d10f72eff5 get rid of duiplicate device icons with eeze+eeze-scanner+mount etc.
as i see both dev/sdX and dev/sdX1 as devices. delete the parent ones
if child partitions exist.



SVN revision: 74543
2012-07-29 10:30:00 +00:00
Mike Blumenkrantz d7f9ff7551 e now requires eio; this commit intentionally split from any code changes
SVN revision: 74373
2012-07-25 07:41:21 +00:00
Christopher Michael 6152d0be40 E_FM: Remove unused variables and fix formatting for 80 columns.
SVN revision: 74299
2012-07-22 15:35:23 +00:00
Carsten Haitzler 58be84aa8e dont look for socket file - just connect to see if eeze scanner is
ther. no need for delay as we are polling anyway to try run it every N
polls (i reduced to 8 as once it runs it no longer polls).



SVN revision: 74262
2012-07-21 09:11:39 +00:00
Mike Blumenkrantz db8156c94b close eeze_scanner on efm shutdown if we started it
SVN revision: 73551
2012-07-11 06:41:19 +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 51cb146463 efm with eeze mounting should handle "unknown" devices more gracefully, also add some handling for udev CHANGE events
SVN revision: 73521
2012-07-10 10:43:28 +00:00
Carsten Haitzler ecddd2391f supprot XDG_RUNTME_DIR for ipc socket and handle failure if someone
already created it - try new names until tries exhausted (4096)



SVN revision: 73072
2012-06-30 05:33:36 +00:00
Mike Blumenkrantz b5f4a75990 remove log level setting in eeze scanner and efm
SVN revision: 73024
2012-06-29 07:57:58 +00:00
Mike Blumenkrantz 9370e51c04 I came so close to just deleting this file instead of fixing it again
SVN revision: 72998
2012-06-28 10:38:38 +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
Mike Blumenkrantz ba7c89a833 efm log level -> ERR
SVN revision: 72993
2012-06-28 10:19:45 +00:00
Mike Blumenkrantz 045eeee554 proudly set the EFM_MODE_USING_EEZE_MOUNT flag so that we don't use gross EFM_MODE_USING_RASTER_MOUNT
SVN revision: 72854
2012-06-26 07:31:43 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz 6f83e8c10e final bug fixes for eeze mounting: ensure suid wrapper is set for eject, fix mount point deletion on ejecting, create mount point directories just before mounting to allow for correct permissions
SVN revision: 72479
2012-06-19 13:42:51 +00:00
Mike Blumenkrantz 7e43d22dad remove a probably-impossible case where efm's op slave would execute an undefined command without the user's knowledge
SVN revision: 72394
2012-06-18 12:54:07 +00:00