LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-22-2022, 10:54 AM   #1
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Rep: Reputation: 0
xdg-email mozilla-thunderbird.desktop: command not found


xdg-open was not working with "mailto:" links in brave so I tried from the command line.

Code:
brian@backslackin:~$ xdg-email mailto:brian@brian.com
/usr/bin/xdg-email: line 620: mozilla-thunderbird.desktop: command not found
so I checked
Code:
brian@backslackin:~$ xdg-mime query default "x-scheme-handler/mailto"
mozilla-thunderbird.desktop
That seemed normal. I also copied mozilla-thunderbird.desktop to ~/.local/share/applications and added the line
Code:
MimeType=x-scheme-handler/mailto:
which seemed to fix it for some users but not for me.

Any thoughts?
 
Old 07-22-2022, 12:24 PM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,467

Rep: Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226
/usr/bin/xdg-email
line 620
Code:
    "$THUNDERBIRD" -compose "$NEWMAILTO"
and $THUNDERBIRD is referring to mozilla-thunderbird.desktop

maybe it should point to the binary : /usr/bin/thunderbird ?
 
Old 07-22-2022, 02:41 PM   #3
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marav View Post
/usr/bin/xdg-email
line 620
Code:
    "$THUNDERBIRD" -compose "$NEWMAILTO"
and $THUNDERBIRD is referring to mozilla-thunderbird.desktop

maybe it should point to the binary : /usr/bin/thunderbird ?
The .desktop file has a line which launches the binary. I think that is correct.
 
Old 07-22-2022, 03:35 PM   #4
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,467

Rep: Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226
This is what I tried to say
https://gitlab.freedesktop.org/xdg/x...s/-/issues/187

Code:
Under KDE, however, "open_kde()" does not do this call, and so it tries 
to execute the actual ".desktop" file itself (which is what makes this fail).
... instead of the EXEC= command

Last edited by marav; 07-22-2022 at 03:36 PM.
 
Old 07-22-2022, 03:40 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,467

Rep: Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226Reputation: 4226
Here is the patch:

https://cgit.freedesktop.org/xdg/xdg...bf6da7764955a9

EDIT: just tested, and it works
Code:
--- xdg-utils.SlackBuild        2022-07-22 22:47:09.299656037 +0200
+++ xdg-utils.SlackBuild.1      2022-07-22 22:46:54.981747670 +0200
@@ -30,7 +30,7 @@
 VERSION=1.1.3
 PKG_VERSION=${VERSION/-/_}
 ARCH=noarch
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
 
 # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
 # the name of the created package would be, and then exit. This information
@@ -56,6 +56,7 @@
 
 # Fix xdg-open usage in LXDE:
 zcat $CWD/xdg-open.no.relative.paths.diff.gz | patch -p1 --verbose || exit 1
+zcat $CWD/1a58bc28f6844898532daf9ee1bf6da7764955a9.diff.gz | patch -p1 --verbose || exit 1
 
 chown -R root:root .
 find . \

Last edited by marav; 07-22-2022 at 03:48 PM.
 
Old 07-23-2022, 06:43 PM   #6
Biscotty666
Member
 
Registered: Jul 2022
Distribution: Slackware 15, Arch
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by marav View Post
Here is the patch:

https://cgit.freedesktop.org/xdg/xdg...bf6da7764955a9

EDIT: just tested, and it works
Code:
--- xdg-utils.SlackBuild        2022-07-22 22:47:09.299656037 +0200
+++ xdg-utils.SlackBuild.1      2022-07-22 22:46:54.981747670 +0200
@@ -30,7 +30,7 @@
 VERSION=1.1.3
 PKG_VERSION=${VERSION/-/_}
 ARCH=noarch
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
 
 # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
 # the name of the created package would be, and then exit. This information
@@ -56,6 +56,7 @@
 
 # Fix xdg-open usage in LXDE:
 zcat $CWD/xdg-open.no.relative.paths.diff.gz | patch -p1 --verbose || exit 1
+zcat $CWD/1a58bc28f6844898532daf9ee1bf6da7764955a9.diff.gz | patch -p1 --verbose || exit 1
 
 chown -R root:root .
 find . \
Thanks but I applies this patch, built and upgraded but it didn't do anything.

I did make an advance by changing xdg-email to go straight for thunderbird and not use the .desktop file. That made cli xdg-email work. The mail url extensions in brave are still not working though. No biggie.

I think I'll let this one lie for a while because at the end of the day it only saves a couple of clicks. Getting sound and wifi are more important. Next task: pipewire.

Last edited by Biscotty666; 07-23-2022 at 06:45 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
update from mozilla thunderbird 12.0.1 to mozilla thunderbird 13.0 herakles_14 Ubuntu 1 06-11-2012 02:49 AM
configure: error: The xdg python module is required (pyxdg or python-xdg) Sargalus Linux - Software 7 03-24-2010 07:34 AM
LXer: Mozilla Thunderbird to Find New Home as Mozilla Foundation Focuses on Mozilla Firefox LXer Syndicated Linux News 0 07-27-2007 09:16 AM
Segfaults in Mozilla, Mozilla Firebird, and Mozilla Thunderbird Ninja Cow Linux - Software 2 02-02-2004 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration