| Summary: | Cannot open files from applications in lxqt [xdg-open] | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Dimitrios Glentadakis <dglent> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | jani.valimaa, lewyssmith, sysadmin-bugs |
| Version: | 6 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://bugs.freedesktop.org/show_bug.cgi?id=103146 | ||
| Whiteboard: | MGA6-64-OK | ||
| Source RPM: | xdg-utils-1.1.2-1.mga6.src.rpm | CVE: | |
| Status comment: | |||
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 Pushed fixed xdg-utils-1.1.2-1.1.mga6 to core/updates_testing for mga6. Please test. Assignee:
doktor5000 =>
qa-bugs 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 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 An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2017-0117.html Resolution:
(none) =>
FIXED Fixed upstream: https://bugs.freedesktop.org/show_bug.cgi?id=81674 |
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"