Re: MC Midnight Commander: error opening PDF files refers to Dolphin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16.01.2015 16:57, A.J. Bonnema wrote:
> On 16-01-15 13:32, poma wrote:
>>> I wonder where mc gets the instruction to load
>>> /usr/bin/dolphin when I enter on a pdf file?
>>
>>
>> See if you can find something interesting:
>> $ find ~/.local -name mime*
>>
>>
> Well, that got me a file called 
> .local/share/xfce4/helpers/custom-FileManager.desktop that contained the 
> instruction to load /usr/bin/dolphin.
> So I changed dolphin to nautilus and voila: I got nautilus.
> 
> When I removed the xfce4 directory from .local/share, the most weird 
> thing happened. Restarting MC I entered on the pdf again, and this time 
> got an XFCE request to choose a default filemanager. Remark that I am 
> working from gnome!
> 
> Ok, so apparantly MC has a connection to XFCE4 even if it is not 
> running. What does MC want with XFCE configuration? Why does it want to 
> open a filemanager in stead of a pdf reader?
> 
> I attached the 2 dialogs in screenprint I got from mc.
> 
> Regards, Guus.
> 
> 
> 

This works for me.

$ cp /etc/mc/mc.ext ~/.config/mc/

$ sed -i 's/\/usr\/libexec\/mc\/ext.d\/doc.sh open pdf/\
xpdf ${MC_EXT_FILENAME} >\/dev\/null 2>\&1 \&/g' ~/.config/mc/mc.ext

$ grep xpdf ~/.config/mc/mc.ext
xpdf ${MC_EXT_FILENAME} >/dev/null 2>&1 &

If this doesn't work for you, start over with a clean user environment.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux