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

Bug#1005818: task-lxde-desktop: libreoffice is used as default pdf reader



Control: reassign -1 lxde


Andreas Tille <andreas@an3as.eu> wrote (Tue, 15 Feb 2022 17:12:09 +0100):
> On a fresh installation of bullseye libreoffice is started when clicking
> on a pdf file.
> 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
> 
> I tried to adjust "Default applications for LXDE Session" in the
> configuration setting.  Unfortunately nearly all settings are
> set to "disabled" and I can not change anything here.

Since evince is automatically installed, it's "just" a matter of setting
evince as the default application for PDF - as you already have tried to :-)

I managed to get this done easily by right-clicking on the PDF file, choose
"Open with...", then select the app "Document Viewer" (this is evince) from
"Office" section, set the checkbox for "Set selected application as default
action for this file type" - and you are done.

So, this is basically not an installation problem, the installation was
successful. And therefore this is nothing, that can be done in tasksel
(this bug being reported against tasksel) on this.

I did another test install with XFCE desktop environment, and there this
problem did not exist. Installed PDF viewer was here Atril (from the MATE 
environment).

So, it's after all an problem either with LXDE (the environment) or with
evince | libreoffice (the packages).

I will reassign this bug to LXDE for now.

@LXDE people: please reassign accordingly, if you think different.


Holger





> 
> I also tried to change manually the following:
> 
> ~$ diff -u .config/lxsession-default-apps/settings.conf_save .config/lxsession-default-apps/settings.conf
> --- .config/lxsession-default-apps/settings.conf_save	2022-02-15 16:35:32.730001667 +0100
> +++ .config/lxsession-default-apps/settings.conf	2022-02-15 16:41:12.822627295 +0100
> @@ -12,7 +12,7 @@
>  terminal_manager/available=
>  audio_player/available=
>  video_player/available=
> -pdf_reader/available=
> +pdf_reader/available=evince
>  image_display/available=
>  text_editor/available=
>  archive/available=
> @@ -34,7 +34,7 @@
>  terminal_manager/installed=XTerm,xterm,mini.xterm,/usr/share/applications/debian-xterm.desktop,;UXTerm,uxterm,mini.xterm,/usr/share/applications/debian-uxterm.desktop,;Terminal emulator,/usr/bin/x-terminal-emulator,terminal,/usr/share/applications/lxde-x-terminal-emulator.desktop,;Multilingual Terminal,mlterm,mlterm-icon-24colors-1,/usr/share/applications/mlterm.desktop,;LXTerminal,lxterminal,lxterminal,/usr/share/applications/lxterminal.desktop,;Thai X terminal,txiterm,xiterm+thai,/usr/share/applications/xiterm+thai.desktop,;Rxvt Color Unicode Terminal,urxvt,urxvt_48x48.xpm,/usr/share/applications/rxvt-unicode.desktop,;
>  audio_player/installed=LXMusic simple music player,lxmusic,lxmusic,/usr/share/applications/lxmusic.desktop,;mpv Media Player,mpv,mpv,/usr/share/applications/mpv.desktop,;PulseAudio-Lautstärkeregler,pavucontrol,multimedia-volume-control,/usr/share/applications/pavucontrol.desktop,;Im SMPlayer einreihen,smplayer,smplayer,/usr/share/applications/smplayer_enqueue.desktop,;SMPlayer,smplayer,smplayer,/usr/share/applications/smplayer.desktop,;VLC Media Player,/usr/bin/vlc,vlc,/usr/share/applications/vlc.desktop,;Audacity,env,audacity,/usr/share/applications/audacity.desktop,;Audacious,audacious,audacious,/usr/share/applications/audacious.desktop,;Ripper X,ripperx,ripperx,/usr/share/applications/ripperx.desktop,;K3b,k3b,k3b,/usr/share/applications/org.kde.k3b.desktop,;Cheese,cheese,org.gnome.Cheese,/usr/share/applications/org.gnome.Cheese.desktop,;OBS Studio,obs,com.obsproject.Studio,/usr/share/applications/com.obsproject.Studio.desktop,;
>  video_player/installed=LXMusic simple music player,lxmusic,lxmusic,/usr/share/applications/lxmusic.desktop,;mpv Media Player,mpv,mpv,/usr/share/applications/mpv.desktop,;PulseAudio-Lautstärkeregler,pavucontrol,multimedia-volume-control,/usr/share/applications/pavucontrol.desktop,;Im SMPlayer einreihen,smplayer,smplayer,/usr/share/applications/smplayer_enqueue.desktop,;SMPlayer,smplayer,smplayer,/usr/share/applications/smplayer.desktop,;VLC Media Player,/usr/bin/vlc,vlc,/usr/share/applications/vlc.desktop,;Audacity,env,audacity,/usr/share/applications/audacity.desktop,;Audacious,audacious,audacious,/usr/share/applications/audacious.desktop,;Ripper X,ripperx,ripperx,/usr/share/applications/ripperx.desktop,;K3b,k3b,k3b,/usr/share/applications/org.kde.k3b.desktop,;Cheese,cheese,org.gnome.Cheese,/usr/share/applications/org.gnome.Cheese.desktop,;OBS Studio,obs,com.obsproject.Studio,/usr/share/applications/com.obsproject.Studio.desktop,;
> -pdf_reader/installed=Bildbetrachter,gpicview,gpicview,/usr/share/applications/gpicview.desktop,;Dokumentenbetrachter,evince,org.gnome.Evince,/usr/share/applications/org.gnome.Evince.desktop,;Druckvorschau,evince-previewer,document-print-preview,/usr/share/applications/org.gnome.Evince-previewer.desktop,;Feh,feh,image-viewer,/usr/share/applications/feh.desktop,;
> +pdf_reader/installed=evince,Bildbetrachter,gpicview,gpicview,/usr/share/applications/gpicview.desktop,;Dokumentenbetrachter,evince,org.gnome.Evince,/usr/share/applications/org.gnome.Evince.desktop,;Druckvorschau,evince-previewer,document-print-preview,/usr/share/applications/org.gnome.Evince-previewer.desktop,;Feh,feh,image-viewer,/usr/share/applications/feh.desktop,;
>  image_display/installed=Bildbetrachter,gpicview,gpicview,/usr/share/applications/gpicview.desktop,;Dokumentenbetrachter,evince,org.gnome.Evince,/usr/share/applications/org.gnome.Evince.desktop,;Druckvorschau,evince-previewer,document-print-preview,/usr/share/applications/org.gnome.Evince-previewer.desktop,;Feh,feh,image-viewer,/usr/share/applications/feh.desktop,;
>  text_editor/installed=Mousepad,mousepad,org.xfce.mousepad,/usr/share/applications/mousepad.desktop,;Vim,vim,gvim,/usr/share/applications/vim.desktop,;Emacs (GUI),/usr/bin/emacs,emacs,/usr/share/applications/emacs.desktop,;Emacs (Terminal),/usr/bin/emacs,emacs,/usr/share/applications/emacs-term.desktop,;Midnight Commander editor,mcedit,MidnightCommander,/usr/share/applications/mcedit.desktop,;
>  archive/installed=Xarchiver,xarchiver,xarchiver,/usr/share/applications/xarchiver.desktop,;
> 
> 
> I did also another attempt via mime settings:
> 
> $ cat /etc/mailcap.order
> ###############################################################################
> #
> #  Mailcap.order:  This file allows a system-wide override of MIME program
> #  preferences.  See the mailcap.order(5) man page for more information.
> #
> #  After modifying this file, be sure to run /usr/sbin/update-mime (as root)
> #  to propagate the changes into the /etc/mailcap file.
> #
> ################################################################################



-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076


Reply to: