Page 1 of 1

[SOLVED] Adobe Reader starts instead of Nautilus

PostPosted: Aug 6th, '12, 16:21
by flink
I have just updated to Mageia 2 and the GNOME desktop. When I click on the "Home Folder" directory icon, then Acrobat Reader is started and not Nautilus with the home directory. :evil:

And Acrobat Reader gives the error message: "There was an error opening this document. It is a directory."

So how can I open the homefolder with Nautilus? How can I teach Adobe Reader that it does not assign itself to a directory?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 6th, '12, 22:00
by doktor5000
When you are using GNOME, you need to edit the default application for inode/directory or for opening folders, but i don't know where this is set in GNOME.
Maybe right-click on an empty folder and say Open with ... and select Nautilus instead Adobe Reader?

Otherwise i'd just remove Adboe Reader.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 6th, '12, 23:14
by flink
doktor5000 wrote:Maybe right-click on an empty folder and say Open with ... and select Nautilus instead Adobe Reader?

There is no entry of 'Adobe Reader' in the 'Open with' context menu. But I wanted to start Nautilus by the easy way from the second menu in the GNOME menu panel. And when I click on the Nautilus Icon here then only Adobe Reader starts with the folder and of course it fails to open it. :evil:

doktor5000 wrote:Otherwise i'd just remove Adboe Reader.

But I need the Adobe Reader.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 11:08
by flink
I have the same problem when I insert an usb stick into the computer.
Then Adobe Reader starts with the error message.
Code: Select all
There was an error opening this document. Is a directory.
[OK]

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 12:31
by tom_
I'm not a gnome user,
but googling I have found some simple solution in internet.

Can you try them?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 13:04
by flink
tom_ wrote:Can you try them?

I have added these lines:

Code: Select all
[root@localhost applications]# vi defaults.list

inode/directory=nautilus.desktop
x-directory/normal=nautilus.desktop



Code: Select all
[root@localhost applications]# vi nautilus.desktop

MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;application/x-gnome-saved-search;


This has no effect. Adobe Reader ignores all this.
The entries for the Adobe Reader are these:

Code: Select all
defaults.list:

application/pdf=AdobeReader.desktop
application/vnd.adobe.xfdf=AdobeReader.desktop
application/vnd.fdf=AdobeReader.desktop
application/vnd.adobe.xdp+xml=AdobeReader.desktop
application/vnd.adobe.pdx=AdobeReader.desktop
application/fdf=AdobeReader.desktop
application/xdp=AdobeReader.desktop
application/xfdf=AdobeReader.desktop
application/pdx=AdobeReader.desktop

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 13:41
by tom_
I was talking about this part:

One more way - for "mousemonkeys", like me

Just do in terminal

Code: Select all
exo-preferred-applications


then switch to Utilities tab and select File Manager you prefer. And that's all!

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 20:17
by flink
I have now executed this command in a command shell. Then a graphical window opens.
I have chosen the 'Gestionnaire de fichiers' (file assignment) and set it to Nautilus.

However there is still the Adobe Reader which tries to open every folder.
I will make a restart now. I will only post again if this issue gets resolved in 10 minutes.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 20:37
by doktor5000
BTW, as which user did you do this and which file did you edit, as the commands you posted show that you did this as root?
Code: Select all
[root@localhost applications]# vi defaults.list
[root@localhost applications]# vi nautilus.desktop


You should do this as normal user.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 7th, '12, 21:43
by flink
doktor5000 wrote:You should do this as normal user.


I have done the modifications as root on the global files.
Now I have done it also as the user on the local files.

The situation remains unchanged. Adobe Reader still opens the start folder and fails doing so.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 8th, '12, 21:40
by doktor5000
As user, please show the output of
Code: Select all
xdg-mime query default inode/directory
and
Code: Select all
grep -iE 'adobe|acro' ~/.local/share/applications/mime*


Also, which system files did you change so far?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 8th, '12, 22:24
by flink
doktor5000 wrote:As user, please show the output of
Code: Select all
xdg-mime query default inode/directory
and
Code: Select all
grep -iE 'adobe|acro' ~/.local/share/applications/mime*


Code: Select all
nautilus.desktop
/home/franz/.local/share/applications/mimeapps.list:application/pdf=AdobeReader8.desktop;evince.desktop;gimp.desktop;


doktor5000 wrote:Also, which system files did you change so far?


I have only changed the files as recommended from your link above.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Aug 11th, '12, 09:17
by flink
When I start Nautilus from a command shell, then I see this error message:

Code: Select all
[franz@localhost ~]$ Initializing nautilus-open-terminal extension
Error: PDF file is damaged - attempting to reconstruct xref table...


Nautilus still gets started without any problems.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 20:12
by flink
After I have deinstalled Adobe Reader then the following happens. I download a jpg file from Firefox and try to open it from the download window. Then I get an error message:

Code: Select all
Impossible de lancer le Gestionnaire de fichiers par defaut.
L'exécution du processus fils « /usr/bin/acroread » a échoué (Aucun fichier ou dossier de ce type).

This means in English, that there is a default file handler /usr/bin/acroread set somewhere and it could not find it any more. But where has this been set so I can remove it from the configuration?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 21:23
by doktor5000
Well, as you directly edited system-wide configuration files you may have inflicted this yourself ...
Try
Code: Select all
update-desktop-database -v && update-mime-database -v
as root

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 22:40
by flink
doktor5000 wrote:Well, as you directly edited system-wide configuration files you may have inflicted this yourself ...
Try
Code: Select all
update-desktop-database -v && update-mime-database -v
as root

I do not think that I have added anywhere the 'Adobe Reader' manually.

I have executed the command as root.
Code: Select all
File "/usr/share/applications/kpdftool.desktop" lacks MimeType key
File "/usr/share/applications/mageiaupdate.desktop" lacks MimeType key
File "/usr/share/applications/qasconfig.desktop" lacks MimeType key
File "/usr/share/applications/session-properties.desktop" lacks MimeType key
File "/usr/share/applications/gnome-datetime-panel.desktop" lacks MimeType key
update-mime-database (shared-mime-info) 1.0
Copyright (C) 2003 Thomas Leonard.
update-mime-database comes with ABSOLUTELY NO WARRANTY,
to the extent permitted by law.
You may redistribute copies of update-mime-database
under the terms of the GNU General Public License.


However I have the same result in the Firefox Download Window. It tries to run the /usr/bin/acroread command with an image file.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 22:57
by doktor5000
Firefox has its own settings for actions on files. Check Preferences -> Applications

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 23:06
by flink
doktor5000 wrote:Firefox has its own settings for actions on files. Check Preferences -> Applications

There I have this:

Code: Select all
image/jpg   Toujours demander (ask always)


There is no entry for 'Abobe Reader' anywhere in Firefox.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 19th, '12, 23:41
by doktor5000
flink wrote:However I have the same result in the Firefox Download Window. It tries to run the /usr/bin/acroread command with an image file.

Which differs from the setting which you mentioned, where it should ask what to do -> or what do you select in that dialog?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 21st, '12, 20:09
by flink
doktor5000 wrote:
flink wrote:However I have the same result in the Firefox Download Window. It tries to run the /usr/bin/acroread command with an image file.

Which differs from the setting which you mentioned, where it should ask what to do -> or what do you select in that dialog?


The dialog never shows up. It just tries to start the acrobat reader and fails, because there is no acroread.

I have now searched all files '*.*' under /etc if it contains the string acroread. But they exist only for the urpmi configuration. Then I search the local files '.*' of the user and I found this:

Code: Select all
          <bookmark:application name="File Manager" exec="&apos;/usr/bin/acroread&apos;" modified="2010-12-23T16:23:13Z" count="1"/>
          <bookmark:application name="File Manager" exec="&apos;/usr/bin/acroread&apos;" modified="2010-12-28T11:41:10Z" count="1"/>
          <bookmark:application name="File Manager" exec="&apos;/usr/bin/acroread&apos;" modified="2011-01-01T09:08:44Z" count="1"/>
2293782   84 -rw-rw-r--   1 franz    franz       81308 janv.  1  2011 ./.recently-used.xbel.AAE4NV


But where does this come from to have the File Manager set as "/usr/bin/acroread"?

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 21st, '12, 21:48
by flink
Now I have searched in the local user folder and found this:

./.mozilla/firefox/9i1h0hph.default/mimeTypes.rdf

Code: Select all
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/x-octet-stream"
                   NC:path="/usr/bin/acroread"
                   NC:prettyName="acroread" />

...

 <RDF:Description RDF:about="urn:mimetype:externalApplication:content-type:application/x-unknown-content-type"
                   NC:prettyName="acroread"
                   NC:path="/usr/bin/acroread" />

...

  <RDF:Description RDF:about="urn:mimetype:handler:content-type:application/x-unknown-content-type"
                   NC:alwaysAsk="true">
    <NC:externalApplication RDF:resource="urn:mimetype:externalApplication:content-type:application/x-unknown-content-type"/>
    <NC:possibleApplication RDF:resource="urn:handler:local:/usr/bin/acroread"/>
  </RDF:Description>


This seems to be part of Firefox. Version 10.0.7 is installed.
Should I remove these lines? There is no file '/usr/bin/acroread' anyways.

So I have removed those lines and: still everything is the same problem.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 21st, '12, 21:55
by flink
I have found another file under /home/franz:

./.local/share/xfce4/helpers/custom-FileManager.desktop


Code: Select all
[Desktop Entry]
NoDisplay=true
Version=1.0
Encoding=UTF-8
Type=X-XFCE-Helper
X-XFCE-Category=FileManager
X-XFCE-CommandsWithParameter=/usr/bin/acroread "%s"
Icon=acroread
Name=acroread
X-XFCE-Commands=/usr/bin/acroread


I have removed this complete file.
And now it works!
I get a windows which says that no file association has been made for this jpg image file from the Firefox download window. And I can choose one in the select box or search for other applications. So I choose Nautilus as my preferred File Manager application.
Now the file SnipImage.JPG opens in Nautilus and is listed in the '/home/franz/tmp' folder. From here I can continue.
Thanks for your answers.

Re: Adobe Reader starts instead of Nautilus

PostPosted: Sep 22nd, '12, 08:02
by isadora
Flink, great you found out!!!

Will you please mark the topic solved now?

You can edit your first message, by pre-fixing the title with [SOLVED].
Thanks in advance!!! :)