Bug 21992 - Cannot open files from applications in lxqt [xdg-open]
Summary: Cannot open files from applications in lxqt [xdg-open]
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard: MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-11-08 06:21 CET by Dimitrios Glentadakis
Modified: 2018-03-04 07:04 CET (History)
3 users (show)

See Also:
Source RPM: xdg-utils-1.1.2-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Dimitrios Glentadakis 2017-11-08 06:21:20 CET
Description of problem:
I cannot open the files directly form some applications as Trojita (attachments), Recoll ...

Version-Release number of selected component (if applicable):
Lxqt 0.11.0

The used command is 'xdg-open $file'
If i launch the command in the terminal i have the error message:

/bin/xdg-open: line 934: pcmanfm: Command not found

The 'pcmanfm' is provided by the LXDE Desktop
The LXQt Desktop provides the 'pcmangm-qt'

So a fix like i did in the following snippet, fixes the problem:

open_lxde()
{
    # pcmanfm only knows how to handle file:// urls and filepaths, it seems.
    if is_file_url_or_path "$1"; then
        local file="$(file_url_to_path "$1")"

        # handle relative paths
        if ! echo "$file" | grep -q ^/; then
            file="$(pwd)/$file"
        fi

        pcmanfm "$file" | pcmanfm-qt "$file"
Comment 1 Jani Välimaa 2017-11-08 21:29:24 CET
I've fixed this for cauldron [1] and will fix it for mga6 tomorrow or later this week.

[1] http://svnweb.mageia.org/packages?view=revision&revision=1176597

CC: (none) => jani.valimaa

Comment 2 Jani Välimaa 2017-11-09 16:21:23 CET
Pushed fixed xdg-utils-1.1.2-1.1.mga6 to core/updates_testing for mga6. Please test.

Assignee: doktor5000 => qa-bugs

Comment 3 Dimitrios Glentadakis 2017-11-09 17:48:35 CET
Thanks Jani for the fix
I tested in mageia 6 64bit and it is ok
Also i have been subscribed in the upstream bug report in order to be informed for any eventual fix

URL: (none) => https://bugs.freedesktop.org/show_bug.cgi?id=103146

Comment 4 Lewis Smith 2017-11-21 10:48:25 CET
Testing M6/64
I already had LXDE - and hence pcmanfm - installed, and installed also LXQt; using that desktop for the test.

BEFORE the update: xdg-utils-1.1.2-1.mga6
Trying to open various different attachments from e-mails, specifically choosing to do so with 'xdg-open', always worked - because pcmanfm was present. Better at the command line:
 $ xdg-open tmp/after 
 ** (pcmanfm:18221): WARNING **: modules directory is not accessible
 $ xdg-open Downloads/POC1.rar
 ** (pcmanfm:19363): WARNING **: modules directory is not accessible
which shows that 'pcmanfm' is being invoked.
Despite which, the files got opened by a relevant ? application (but with some wrong associations - inherent in my system, if not Mageia 6).

AFTER the update: xdg-utils-1.1.2-1.1.mga6
 $ xdg-open servasAG.txt       [Kwrite, works but not the most appropriate]
 $ xdg-open FMaerialBBC.pdf    [LibreOffice, visible but incorrect app.]
 $ xdg-open epson317873eu.zip  [correct, archive program]
all opened an application without the previous error messages. So the update seems to work. Am validating (we are too pressed for 2 tests); advisory to follow.

Whiteboard: (none) => MGA6-64-OK
Keywords: (none) => advisory, validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 5 Mageia Robot 2017-11-26 22:19:17 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0117.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 6 Dimitrios Glentadakis 2018-03-04 07:04:42 CET
Fixed upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=81674

Note You need to log in before you can comment on or make changes to this bug.