You are not logged in.
Pages: 1
I can not launch kitty using Thunar or hot-key. But I can launch kitty in xterm.
:> file --mime-type kitty
kitty: application/x-executable
Where do I need to allow launch of kitty xfce4?
Offline
How are you launching kitty with thunar? Are you clicking on the /usr/bin/kitty executable file?
As for the hotkey, what are the specifics of it? What command have you set to which shortcut combination?
Are there any error messages in ~/.xsession-errors when you try clicking in thunar or using the hotkey?
What version of kitty and thunar are you using?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I am sorry for the incomplete information.
1 I build kitty from source
2 I instaledl kitty in local dir.
3 I installed additional python modules in local directory
4 I added local dir to PATH and PYTHONPATH in .bashrc
But in ~/.xsession-errors (Thank you very much, I understand where to look)
[083 12:47:28.552137] Traceback (most recent call last):
File "/home/yaroslav/local/bin/../lib/kitty/kitty/constants.py", line 201, in read_kitty_resource
from importlib.resources import read_binary
ModuleNotFoundError: No module named 'importlib.resources'
If I launch kitty using hotkey. in hotkey I using absolute path. Kitty not found python module.
where to add paths?
Last edited by yaroslav (2021-03-24 08:17:49)
Offline
4 I added local dir to PATH and PYTHONPATH in .bashrc
Can you post these entries?
Have you logged out and back in again so the new entries in .bashrc are read by thunar/xfce4-settings?
Edit: Did you follow these instructions? They worked for me without the need for adding any path entries to .bashrc.
Which distro and version of Xfce are you running?
Last edited by ToZ (2021-03-24 10:44:38)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Can you post these entries?
:> cat ~/.bashrc | grep PATH
export PKG_CONFIG_PATH=/home/yaroslav/local/lib/pkgconfig
export LD_LIBRARY_PATH=/home/yaroslav/local/lib
export LD_RUN_PATH=/home/yaroslav/local/lib
export PATH=/home/yaroslav/local/bin:$PATH
export MANPATH=/urs/share/man:/home/yaroslav/local/share/man
export PYTHONPATH=/home/yaroslav/local/lib/python3.6/site-packages/
:> type -a kitty
kitty является /home/yaroslav/local/bin/kitty
Have you logged out and back in again so the new entries in .bashrc are read by thunar/xfce4-settings?
Yes.
Edit: Did you follow these instructions? They worked for me without the need for adding any path entries to .bashrc.
Yes I read this instruction
Which distro and version of Xfce are you running?
:> xfce4-about --version
xfce4-about 4.13.4 (Xfce 4.12)
:> uname -v
#75~18.04.1-Ubuntu SMP Tue Feb 23 19:17:50 UTC 2021
If I launch kitty in xterm. All ok.
Offline
What does this command return:
xdg-mime query filetype kitty
...where "kitty" is the file that is created in the kitty/kitty/launcher directory.
If it returns "application/x-sharedlib" instead of "application/x-executable", you'll need to investigate your distro as to why it's doing that.
Edit: Thunar bug report here.
Last edited by ToZ (2021-03-25 01:09:42)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
The error is that Thunar or does not read ~/.bashr file or does not add additional search paths from PYTHONPATH . I moved the python modules to /usr/lib/python directory, everything worked.
Where can you see the environment variables of Thunar.
Offline
Where can you see the environment variables of Thunar.
In linux you can view the current environment variables of a running program by looking in the /proc/PID/environ file - where PID is the process id of the running program.
Assuming you are running the Thunar daemon, then the following will command will do this:
cat /proc/$(ps faux | grep '[T]hunar' | awk '{print $2}')/environ
...or if your not running the daemon:
cat /proc/$(ps faux | grep '[t]hunar' | awk '{print $2}')/environ
When I checked my Xubuntu 18.04 install, after performing the kitty installation instructions, I noticed that the compiled file's mimetype was "application/x-sharedlib". Have you created a link or script to run kitty out of "/home/yaroslav/local/bin/kitty"?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
In /proc/.../environ file information about the environment variables set at the start of the program. if the program added variables, they are not displayed there.
i have builded kitty with options and -pie and -nopie. Not different.
Have you created a link or script to run kitty out of "/home/yaroslav/local/bin/kitty"?
no. I running binary file.
Offline
Unfortunately I cannot replicate this issue on Archlinux, but I am able to replicate it on Xubuntu 18.04. I'm not sure what to suggest. You can try creating a bug report and see if the developers have any other ideas.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Pages: 1
[ Generated in 0.014 seconds, 8 queries executed - Memory usage: 563.1 KiB (Peak: 579.95 KiB) ]