maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Re-compile GPE File Manager binary on N810? (https://talk.maemo.org/showthread.php?t=16404)

SpiritGeek 2008-02-10 03:34

Re-compile GPE File Manager binary on N810?
 
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 2008-02-10 04:08

Re: Re-compile GPE File Manager binary on N810?
 
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/

Saturn 2008-02-10 09:53

Re: Re-compile GPE File Manager binary on N810?
 
Quote:

Originally Posted by SpiritGeek (Post 140434)
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..

SpiritGeek 2008-02-10 12:15

Re: Re-compile GPE File Manager binary on N810?
 
Quote:

Originally Posted by Saturn (Post 140493)
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!

SpiritGeek 2008-02-10 12:16

Re: Re-compile GPE File Manager binary on N810?
 
Quote:

Originally Posted by Johnx (Post 140443)
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 2008-02-10 12:33

Re: Re-compile GPE File Manager binary on N810?
 
Quote:

Originally Posted by SpiritGeek (Post 140434)

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

Thanks!

- post the diff?

SpiritGeek 2008-02-10 13:07

Re: Re-compile GPE File Manager binary on N810?
 
Quote:

Originally Posted by linux_author (Post 140515)
- 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!

SpiritGeek 2008-02-10 19:13

Re: Re-compile GPE File Manager binary on N810?
 
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!

SpiritGeek 2008-02-15 02:31

Re: Re-compile GPE File Manager binary on N810?
 
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!

lo-jay 2009-01-18 13:14

Re: Re-compile GPE File Manager binary on N810?
 
hi there,

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

thanks again!

fragos 2009-01-19 02:17

Re: Re-compile GPE File Manager binary on N810?
 
emelFM2 is amazingly full featured. It will take some time to learn all that it has. Till now I've had to resort to "ls -a" on the command line.

gerstavros 2009-06-13 15:39

Re: Re-compile GPE File Manager binary on N810?
 
Is there any newer version of the modified executable?


All times are GMT. The time now is 23:49.

vBulletin® Version 3.8.8