Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-03-23 15:30:52

yaroslav
Member
Registered: 2020-09-22
Posts: 8

I can not launch program

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

#2 2021-03-23 23:32:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: I can not launch program

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

#3 2021-03-24 08:08:30

yaroslav
Member
Registered: 2020-09-22
Posts: 8

Re: I can not launch program

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 2021-03-24 10:34:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: I can not launch program

yaroslav wrote:

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

#5 2021-03-24 14:19:42

yaroslav
Member
Registered: 2020-09-22
Posts: 8

Re: I can not launch program

ToZ wrote:

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
ToZ wrote:

Have you logged out and back in again so the new entries in .bashrc are read by thunar/xfce4-settings?

Yes.

ToZ wrote:

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

ToZ wrote:

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

#6 2021-03-25 00:55:24

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: I can not launch program

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

#7 2021-03-26 04:41:29

yaroslav
Member
Registered: 2020-09-22
Posts: 8

Re: I can not launch program

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

#8 2021-03-26 11:46:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: I can not launch program

yaroslav wrote:

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

#9 2021-03-27 04:56:33

yaroslav
Member
Registered: 2020-09-22
Posts: 8

Re: I can not launch program

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.

Toz wrote:

Have you created a link or script to run kitty out of "/home/yaroslav/local/bin/kitty"?

no. I running binary file.

Offline

#10 2021-03-27 13:24:43

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: I can not launch program

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 8 queries executed - Memory usage: 563.1 KiB (Peak: 579.95 KiB) ]