On 2020/08/20 20:26:20 +0200, Achim Gratz wrote:
Dr. Werner Fink writes:
The /usr/bin/emacs script does start normally emacs-gtk and this binary does search for different emacs.pdmp versions
werner/emacs> strace -f -o log emacs Warning: game dir '/var/games/emacs': Permission denied werner/emacs> grep pdmp log 25403 openat(AT_FDCWD, "/usr/bin/emacs-gtk.pdmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 25403 openat(AT_FDCWD, "/usr/lib/emacs/27.1/x86_64-suse-linux/emacs.pdmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 25403 openat(AT_FDCWD, "/usr/lib/emacs/27.1/x86_64-suse-linux/emacs-gtk.pdmp", O_RDONLY|O_CLOEXEC) = 3
Yes, but if you start it with a full path as /usr/bin/emacs it completely misses the boat:
3717 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=124, ...}) = 0 3717 lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=76850, ...}) = 0 3717 lstat("/usr/bin/emacs", {st_mode=S_IFREG|0755, st_size=4334, ...}) = 0 3717 openat(AT_FDCWD, "/usr/bin/emacs.pdmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 3717 openat(AT_FDCWD, "/usr/lib/emacs/27.1/x86_64-suse-linux/emacs.pdmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) 3717 openat(AT_FDCWD, "/usr/lib/emacs/27.1/x86_64-suse-linux/emacs.pdmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
And that's exactly what my shortcut did (because it would otherwise have picked up whatever test version I have currently installed as /usr/local/bin/emacs). I've changed the shortcut to directly run /usr/bin/emacs-gtk instead, but that should really not be necessary.
Meanwhile fixed, thanks. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr