maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   how to enable file extensions (https://talk.maemo.org/showthread.php?t=55411)

pctek 2010-06-07 07:11

how to enable file extensions
 
When i open a webpage on the microb browser and save pag as complete web page to view the page offline later how come it saves it as a .php file and some webpages dont save it as that type of file?

If it saves it as a .php file then the only browser to open it offline is firefox on the n900, microb cant open these files up.

Also how do you enable file extensions on the n900 .xxx

uTMY 2010-06-07 08:14

Re: how to enable file extensions
 
hi
you probably need to edit

/usr/share/applications/default.list

as root, note i havn't tested this.

re. file extensions.

3chr file extensions are a windows/dos feature, this is linux. use whatever extensions make you happy.

short soln to webpage.php rename it to webpage.html

note. extensions have no inherent meaning in either windows or linux as to the actual content of the file.

rgds

atikin 2010-06-07 08:53

Re: how to enable file extensions
 
However, on Maemo I ususally can not see file extensions. When saving a picture from a web page I would like to see if it's .png, .gif or .jpg. The system hides extensions as if it matters. I would prefer to see the whole filename whether it has extensions or not. I'm used to MacOS where extensions do not play significant role. But taking in account the Windows world it still matters...

It wouild be cool to just switch extensions on and off all over the device.

uTMY 2010-06-07 13:46

Re: how to enable file extensions
 
Hi, yes I see what you mean, just tested and sure enough if the file has an extension it removes it from view during the save as option in the browser.

If you view it in file manager it hides it there also but when you 'ls' the file system the extension is still there.

weird

I think I might try to dig deeper.

rgds

uTMY 2010-06-08 10:13

Re: how to enable file extensions
 
It appears this is working as designed ... and is listed in bug fixes as WONTFIX.

This is brain dead if correct.

rgds

:-)

Helmuth 2010-06-08 13:25

Re: how to enable file extensions
 
If you are talking and complaining about a spezific Bug it's almost useful to post also the Bug Number and a Link.

Sadly in the end you're correct. It works like the default settings from Microsoft Windows. But at Windows Explorer we are able to correct this bug be changing the setting.

uTMY 2010-06-08 13:30

Re: how to enable file extensions
 
Actually I tire of rallying against brain dead decisions, have it all day long in the day job.

So didn't want to link to the bug since it is set to WONTFIX, I am pretty sure how far a complaint would get.

It was however a humorous attempt at heavily pointed sarcasm with a hint of derision.

:-)

rgds

pelago 2010-06-08 14:09

Re: how to enable file extensions
 
The bug in question is probably Bug 430. Yes, it's a WONTFIX, but I don't think it hurts to vote for it.

dannym 2010-06-08 14:42

Re: how to enable file extensions
 
I added a comment on the bug report on where to find the place to change that it does show file extensions... I don't have time to do it now, maybe in a month or two...

May the source be with you, always :-)

Edit: ah, screw it, see function "_hildon_file_system_create_display_name" in "hildon-file-system-private.c".

There you find:

dot = _hildon_file_system_search_extension (str, only_known, is_folder);
if (dot && dot != str)
*dot = 0;

remove these (what they mean is: search for where the extension starts - dot - and then cut off there if there's anything BUT the extension in the name - because display name "" would be, err, bad).

As far as I understood there will be no Nokia updates for maemo5 anymore, so your custom version won't be auto-destroyed (err -updated) either :-)

pelago 2010-06-08 15:13

Re: how to enable file extensions
 
Many thanks for this, Danny. Anyone brave enough to compile this up and test it?


All times are GMT. The time now is 12:01.

vBulletin® Version 3.8.8