Memyandi42 / gnome-menu-file-browser-applet

Automatically exported from code.google.com/p/gnome-menu-file-browser-applet
0 stars 0 forks source link

Strange behavior #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I use conduit sincronization to sincronize my bookmarks with a folder in
my ubuntu one.
2. If i double click the saved files from nautilus they open exactly as
supposed in firefox 
3. But if i add that folder to the file browser applet they oppen in gedit

i`m using the latest 0.64 applet on ubuntu 9.10

Original issue reported on code.google.com by sfantus1@gmail.com on 19 Dec 2009 at 12:05

GoogleCodeExporter commented 9 years ago
I'm no sure I understand the problem. I suspect the synchronization component 
is a
red herring so I'll ignore it for now...

So the best I can guess is that you have a file that is opened with Firefox when
opened from nautilus, and with gedit when opened from the menu browser. Is this 
correct?

As far as mime types and mime apps go, the menu browser (should) respect your
settings (i.e. should behave the same way as nautilus). However, when you middle
click on a file or directory it will be opened with the menu browser's 
configured 
application (see Miscellaneous in the config dialog). This is sort of an 
"editing"
shortcut when you want to override the default mime behaviour.

If the above is not the issue, would it be possible to sen me the file in 
question so
I can reproduce the problem here?

Thanks,
a.

Original comment by bertol...@gmail.com on 21 Dec 2009 at 5:16

GoogleCodeExporter commented 9 years ago
You are absolutely right. the files are HTML document (text/html) . So i 
changed the
editor executable to firefox and now the files open in firefox with middle 
click,but
still with gedit when left clicked. The terminal executable  is set to 
gnome-terminal

For now it works for me but not exactly as it should
if you want i can send the file

Original comment by sfantus1@gmail.com on 21 Dec 2009 at 6:36

GoogleCodeExporter commented 9 years ago
Ack! That's backwards!

Try opening the file with the gnome-open terminal application, like so:

gnome-open filename

gnome-open doesn't nothing fancy (where nautilus probably does) and will just 
open
the file with the registered mine app. If it is opened in gedit, then gedit IS 
the
registered mime app for that file type. You can fix that in nautilus by going 
to the
file properties and "Open With" dialog.

Let me know what the result is.
a.

Original comment by bertol...@gmail.com on 21 Dec 2009 at 7:27

GoogleCodeExporter commented 9 years ago
hmm so the command oppens the file in gedit but it seems the files are saved 
like
this gnome-open Analytics\ Settings\ -\ Google\ Analytics.desktop and in the
preferences dialog there is no open with dialog

Original comment by sfantus1@gmail.com on 21 Dec 2009 at 8:09

GoogleCodeExporter commented 9 years ago
OK, so it looks like there is no mime type or app entry for that file type. 
Just add
the app you want to open the file with on the Preferences->Open With dialog. 
Then
gnome-open and the menu browser should work correctly (i.e. open the file with 
Firefox).

I guess nautilus is smarter than the rest of us.

Let me know if that works so I can close this bug.

Original comment by bertol...@gmail.com on 21 Dec 2009 at 8:31

GoogleCodeExporter commented 9 years ago
Ok you can close this bug .. because i can`t add the open with application 
because
there is no such dialog in this files properties as i stated before. and i 
don`t know
where to add it other way.

Thank you for all the support. it works for me with the middle click so for now 
is great 

Original comment by sfantus1@gmail.com on 21 Dec 2009 at 9:59

GoogleCodeExporter commented 9 years ago
No, no. We can't give up just yet. I should clarify that I meant the file 
properties
dialog in nautilus, not the applet. From nautilus, if you right click on a file 
and
select the properties item 9the last one in the menu), a dialog will pop up. 
One of
the tabs in that dialog should say "Open With". There you can select the 
default mime
app for that file.

Original comment by bertol...@gmail.com on 22 Dec 2009 at 12:49

GoogleCodeExporter commented 9 years ago
Yes that is exactly what i said :D there is no open-with dialog for this file 
type in
nautilus there are only 4 tabs (basic, emblems,permissions(witch can`t be 
determined)
and notes). 
I don`t want to bug you on weird stuff so i have to thank you again for trying 
to help.
The funny thing is that some of this files links i don`t know how to call them 
if i
right-click them have 2 more items in the menu (open in new tab and open in new
window) but both seem to have the same effect :|

this is how one of this files is inside:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=About Us
Type=Link
URL=http://www.mozilla.com/en-US/firefox/about/
Icon=gnome-fs-bookmark

I don`t know what other info to give you .. so thanks again.. and if you manage 
to
understand something from this than it`s wonderful if not the it is good the 
applet
is usable

Original comment by sfantus1@gmail.com on 22 Dec 2009 at 1:36

Attachments:

GoogleCodeExporter commented 9 years ago
Ah! If it's just a .desktop shortcut file, change the extension to .desktop and 
it 
should work fine.

Original comment by bertol...@gmail.com on 22 Dec 2009 at 3:20

GoogleCodeExporter commented 9 years ago
It makes no sense to change every files extension as this are generated by 
conduit
sync software so i would have duplicate files some with the .desktop extension 
and
some without but anyway i think i will stop using this to backup my bookmarks 
since
they can`t be imported back in Firefox and i will stik to delicious ad-don but i
always wanted a Firefox bookmarks applet and that is why i tried your applet 
which
works great with the other files 
Thank you

Original comment by sfantus1@gmail.com on 22 Dec 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Issue 74 has been merged into this issue.

Original comment by bertol...@gmail.com on 7 Jan 2010 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by bertol...@gmail.com on 7 Jan 2010 at 4:16

GoogleCodeExporter commented 9 years ago
After a preliminary/superficial look, I think this is gio's fault.
g_desktop_app_info_new_from_filename fails on this type of file even though the 
file
appears to follow the .desktop specification.

Original comment by bertol...@gmail.com on 3 Feb 2010 at 3:40

GoogleCodeExporter commented 9 years ago
I think i'm getting a related bad behavior, when i try to open a file it says 
"Could not display /the/route/tothefile""the location is not a folder". The 
file associations are fine on nautilus i don't know why is trying to load files 
as folders. I run version 0.6.6

Original comment by guillerm...@gmail.com on 28 Aug 2011 at 1:20

GoogleCodeExporter commented 9 years ago
That is odd. What type of file is it? What happens if you try to open that file 
from a terminal using 'gnome-open' or 'xdg-open'?

Original comment by bertol...@gmail.com on 28 Aug 2011 at 8:01

GoogleCodeExporter commented 9 years ago
Yeah same error, i just remember i installed pcmanfm another file manager and 
the tut i followed told me to change some application handler files, now i 
can't remember how to undo those changes, is not the applets fault, i just 
don't know how to fix it now. :(

Original comment by guillerm...@gmail.com on 30 Aug 2011 at 4:39

GoogleCodeExporter commented 9 years ago
The applet just uses the mime associations, and you can edit those from 
nautilus under Right Click -> Properties -> Open With.

Original comment by bertol...@gmail.com on 31 Aug 2011 at 3:26

GoogleCodeExporter commented 9 years ago
Yeah those are fine, its just something to do with the file manager, i don't 
know what i changed, and now i cant open files with this applet or gnome-do or 
a few others send the same error.

Original comment by guillerm...@gmail.com on 1 Sep 2011 at 1:17