Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDesktop does not open files on GNU Emacs' emacsclient program #27100

Closed
cyberknight777 opened this issue Nov 14, 2023 · 3 comments
Closed

TDesktop does not open files on GNU Emacs' emacsclient program #27100

cyberknight777 opened this issue Nov 14, 2023 · 3 comments
Labels

Comments

@cyberknight777
Copy link

Steps to reproduce

  1. Install GNU Emacs and configure emacsclient from https://www.emacswiki.org/emacs/EmacsClient.
  2. Set default file opener as emacsclient.
  3. Click on a file in TDesktop.

Expected behaviour

It should open the file on emacsclient as intended.

Actual behaviour

It does not open the file at all.

Operating system

Arch Linux, x86_64, i3wm

Version of Telegram Desktop

Version 4.11.7

Installation source

Static binary from official website

Crash ID

No response

Logs

[pid 155855] execve("/usr/bin/env", ["env", "sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x560bda7370e0 /* 40 vars */) = 0
[pid 155855] execve("/home/cyberknight/.cargo/bin/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/usr/lib/ccache/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/home/cyberknight/.cargo/bin/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/usr/lib/ccache/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/usr/local/sbin/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/usr/local/bin/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = -1 ENOENT (No such file or directory)
[pid 155855] execve("/usr/bin/sh", ["sh", "-c", "\"if", "[", "-n", "\"$*\"", "];", "then", "exec", "emacsclient", "--alternate-editor=", "--display=\"$DISPLAY\"", "\"$@\";", "else", "exec", "emacsclient", "--alternate-editor=", "--create-frame;", "fi\"", "placeholder", "/home/cyberknight/Downloads/Tele"...], 0x7ffca8007510 /* 40 vars */) = 0
[: -c: line 1: unexpected EOF while looking for matching `"'
@ilya-fedin
Copy link
Contributor

Does it work with xdg-open? Does it work with gio open?

@cyberknight777
Copy link
Author

Does it work with xdg-open? Does it work with gio open?

It doesn't work with xdg-open, outputting this: [: -c: line 1: unexpected EOF while looking for matching "'`. It does however work with gio open.

@ilya-fedin
Copy link
Contributor

This means the bug is in xdg-open

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants