Reply
Thread Tools
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#1
After much searching, I concluded that there just isn't a GUI file manager for OS2008 that displays hidden files (which seems quite absurd to me, but I digress..). So I decided to do something about it.

Of the ones I've looked at, I like GPE File Manager best. So I got the source, tracked down the evil bit of code that was filtering hidden files, and snipped it out. So far, so good.

Now I need to re-compile the binary to replace the old one. But I don't have a desktop Linux system handy to try to set up the development environment. Alas!

So, since the N810 is a Linux system after all, I'm wondering if it's possible to set up the necessary components to re-compile this thing on the device itself? I'm afraid my background is mostly in high-level languages, so all this C stuff is somewhat mystifying to me (I took ANSI C 101, but it was long, long ago [pre-Linux!]).

If it's not possible, does anyone have a suggestion for the best way to proceed?

Thanks!
 
Johnx's Avatar
Posts: 643 | Thanked: 628 times | Joined on Mar 2007 @ Seattle (or thereabouts)
#2
I think it might take a fair amount of effort to get all the -dev packages (that contain development headers) installed. You might just want to grab the vmware maemo sdk: http://maemovmware.garage.maemo.org/
 

The Following User Says Thank You to Johnx For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#3
Originally Posted by SpiritGeek View Post
After much searching, I concluded that there just isn't a GUI file manager for OS2008 that displays hidden files (which seems quite absurd to me, but I digress..). So I decided to do something about it.
Have you noticed the emelFM2? http://maemo.org/downloads/product/OS2008/emelfm2/

I shows hidden files and more..
 
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#4
Originally Posted by Saturn View Post
Have you noticed the emelFM2? http://maemo.org/downloads/product/OS2008/emelfm2/

I shows hidden files and more..
I have, but on my device it doesn't display properly. It seems like it's having some problems with screen coordinates. Elements run off the edges of the window and it registers clicks at the wrong places.

But thanks for the tip!
 
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#5
Originally Posted by Johnx View Post
I think it might take a fair amount of effort to get all the -dev packages (that contain development headers) installed. You might just want to grab the vmware maemo sdk: http://maemovmware.garage.maemo.org/
Ah, I didn't know such a handy creature existed. I'll give that a go and see what happens.

Thank you very much!
 
linux_author's Avatar
Posts: 282 | Thanked: 69 times | Joined on Dec 2007 @ Penniless Park, Fla.
#6
Originally Posted by SpiritGeek View Post

If it's not possible, does anyone have a suggestion for the best way to proceed?

Thanks!
- post the diff?
 
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#7
Originally Posted by linux_author View Post
- post the diff?
I've not done a diff before, but I think I got it right.

gpe-filemanager-2.8+maemo+svn20080114-1 is the original, gpe-filemanager-2.8+maemo+svn20080114-1h is the modified.

Code:
maemo@maemo-sdk:~$ diff gpe-filemanager-2.8+maemo+svn20080114-1/main.c gpe-filemanager-2.8+maemo+svn20080114-1h/main.c
1231c1231,1232
<     if (vfs_file_info->name != NULL && vfs_file_info->name[0] != '.')
---
>     //if (vfs_file_info->name != NULL && vfs_file_info->name[0] != '.')       <-- Hiding hidden files in a file manager; evil!
>     if (vfs_file_info->name != NULL)
How's that?

Thanks!
 
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#8
Oy! So, I've been beating my head against this for several hours and I've officially decided that I'm in way over my head. I just don't know enough about Linux or C development to pull this off.

Would anyone with a working setup care to re-compile this for me? The modified source package is here:
http://ongoingprocess.net/stuff/gpe-...0080114-1h.zip

Otherwise, I'll have to write my own in Python.

Thanks!
 
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#9
Yay! I finally slogged through the setup and dependencies and managed to re-compile the binary. If you're interested, you may find it here:

gpe-filemanager

Just replace /usr/bin/gpe-filemanager with that one and you'll see all your hidden files.

Enjoy!
 

The Following User Says Thank You to SpiritGeek For This Useful Post:
Posts: 31 | Thanked: 1 time | Joined on Jan 2009
#10
hi there,

very interested in being able to see .files!
so how exactly do i "replace" the file /usr/bin/gpe-filemanager ?

thanks again!
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:55.