Author Topic: [Request/Discussion] File manager for Dingux  (Read 4484 times)

xdpirate (OP)

  • * Former Staff
  • Posts: 490
[Request/Discussion] File manager for Dingux
« on: August 04, 2010, 09:50:01 pm »
First of all, the reason I created this as a separate topic instead of posting in the request thread is a) the request thread is cluttered and b) I think that a lot of people would like an application like this.

I hereby request a file manager for Dingux.

The native firmware has one built in, we should have one aswell. Sadly, I'm too inexperienced to accomplish this, hence the request thread.

This file manager would probably be built using SDL, and should include functionality for the following operations: copying, moving, renaming and viewing properties of both files and folders. The properties would include time stamps, size, file type (for files), and permissions.

The ability to organize the contents of the memory card on the go would increase the portable aspect of the Dingoo. You wouldn't have to connect to a computer to perform simple, mundane tasks such as relocating a directory or a file you put in the wrong place.

Me and most likely a number of other Dingux users would hugely appreciate this, as it means a computer wouldn't be required for anything other than adding new content to the memory card.

If you agree with me, please leave a comment, and maybe we can attract a developer to work on creating such an application!

Maybe someone would even be willing to donate for something like this... ;)

eule

  • * Former Staff
  • Posts: 889
Re: [Request/Discussion] File manager for Dingux
« Reply #1 on: August 04, 2010, 11:14:31 pm »
I?d like to see such an app too, maybe the functionality could even be built into the gmenu2x explorer? Also, maybe it?d be cool to be able to assign some file extensions to specific apps, i.e. mp3 to gmu or .jpg to Dinimavie (or what the image viewer was called) or .smc to snes9x, very much like on the native firmware. Maybe that would be useless though...  ;D

flaming_goat

  • Guest
Re: [Request/Discussion] File manager for Dingux
« Reply #2 on: August 04, 2010, 11:34:03 pm »
I was just thinking the same thing. A file manager would be great. Its so annoying when you stick ur roms or whatever on the dingoo then discover they are in the wrong place. An Unzipper would be pretty good to build in too.

darfgarf

  • Guest
Re: [Request/Discussion] File manager for Dingux
« Reply #3 on: August 05, 2010, 06:14:22 am »
How odd, I started working on one ages ago and there was zero interest, it was also a complete bitch to write, especially doing text in sdl (sdl_ttf) has a habit of corrupting the stack frequently.

I'll poke around in my old backups and see if it still exists somewhere, don't think so though

Meneer Jansen

  • Posts: 511
Re: [Request/Discussion] File manager for Dingux
« Reply #4 on: August 05, 2010, 01:29:14 pm »
Wouldn't it be possible to port ye 'ol Midnight Commander to Dinux then? It's text based, so it may not have a lot of dependencies and may be easy to port...  ::)
Finally got me a new Dingoo after I Kentucky ~~::fried::~~ the other one. Yippee! [edit] And lost it!

xdpirate (OP)

  • * Former Staff
  • Posts: 490
Re: [Request/Discussion] File manager for Dingux
« Reply #5 on: August 05, 2010, 03:36:41 pm »
How odd, I started working on one ages ago and there was zero interest, it was also a complete bitch to write, especially doing text in sdl (sdl_ttf) has a habit of corrupting the stack frequently.

I'll poke around in my old backups and see if it still exists somewhere, don't think so though
Awesome, darfgarf supar dev gogogo!

Wouldn't it be possible to port ye 'ol Midnight Commander to Dinux then? It's text based, so it may not have a lot of dependencies and may be easy to port...  ::)
I talked to zear about this on the IRC channel. The main issues with this are:

  • No renaming, because of no virtual keyboard
  • You can't use MCs keyboard shortcuts, no hardware keyboard.
  • ncurses doesn't see Ctrl/Alt/Shift as single keys, but as modifier keys, and can only be detected together with other keys (A/B/Y are mapped to those keys in Dingux)
  • The Dingux standard terminal font is tiny, 3x4 if I remember correctly. This would make organizing a tedious task, which isn't what we're after. You could of course recompile the kernel with an 8x8 or larger terminal font (which I did here, outdated), but that isn't a task that your average user will be doing.

If anyone can find a file manager with a keyboard already created in SDL, it would just be a matter of porting. If not, one has to be written from scratch.

darfgarf

  • Guest
Re: [Request/Discussion] File manager for Dingux
« Reply #6 on: August 05, 2010, 04:28:06 pm »
If I miraculously find the time ill set aside an hour in the evenings/sometime to look into it, but I'm working now, and 8 hours of debugging is pretty tiring

If looks don't matter, throw sdl_picofont together with some folder browsing code and jobs a goodun, for copying etc it can be done the lazy way and just run cp foo foo2 or something, actual code content could be very minimal

Meneer Jansen

  • Posts: 511
Re: [Request/Discussion] File manager for Dingux
« Reply #7 on: August 05, 2010, 10:54:30 pm »
@XDPirate: Thank you for your explanation.

@DarfGarf: IMHO any filebrowser would do. If you can make one quick and dirty: super! Will it have a virtual keyboard?
Finally got me a new Dingoo after I Kentucky ~~::fried::~~ the other one. Yippee! [edit] And lost it!

xdpirate (OP)

  • * Former Staff
  • Posts: 490
Re: [Request/Discussion] File manager for Dingux
« Reply #8 on: August 05, 2010, 11:54:04 pm »
Hmm, doing system() calls seems like a viable option. I'll look into it later tonight, maybe I can throw together something minimalistic. Thanks for the idea, darfgarf :)

madhatter

  • Guest
Re: [Request/Discussion] File manager for Dingux
« Reply #9 on: August 06, 2010, 04:17:21 am »
point me to the donate button. this would be great. getting out of the comfy chair to move/remove files is a bother ;p

rmkbow

  • Posts: 28
Re: [Request/Discussion] File manager for Dingux
« Reply #10 on: August 06, 2010, 04:57:45 pm »
i would love a filemanager even with just copy/paste/delete

darfgarf

  • Guest
Re: [Request/Discussion] File manager for Dingux
« Reply #11 on: August 06, 2010, 10:51:23 pm »
about an hour of ugly coding and i have a basic demo, can't change folders, can't scroll off the edges of the screen, things aren't in alphabetical order etc

i don't really have the time to get it past the basic traverse directories, maybe copy and paste stage, but everything you'd need to do a full browser with keyboard etc is already in there, just involves making the right strings of text to put on the screen and make it do fancy stuff.  If anyone is keen on actually giving this a proper try it's probably one of teh easiest suggestions that've been made in the last year, don't be shy, get round to learning basic C and SDL :D

 

Post a new topic