Search found 6 matches
- Wed Feb 24, 2021 1:21 pm
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Re: Using toolbar custom button to run bash script
Hi, I found out that after updating XnView MP to newest version everything started working. Thanks for help.
- Wed Jan 13, 2021 1:58 pm
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Re: Using toolbar custom button to run bash script
In my case it uses home folder(Fedora linux). I guess that running python script directly is not possible? I am trying to open a new terminal window to allow me further communication with the python script or seeing the result. I am using bash command:
gnome-terminal -e 'sh -c "python3 /path/python ...
gnome-terminal -e 'sh -c "python3 /path/python ...
- Fri Jan 08, 2021 7:51 am
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Re: Using toolbar custom button to run bash script
Any help would be appreciated
, thanks a lot.

- Thu Dec 31, 2020 10:50 am
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Re: Using toolbar custom button to run bash script
Okey, I am not able to find toolbar.ini, but I found .bar file and it says:
_cmd_=mylabel;/home/user/somepath/test.sh;
It seems that is is associated with the button.
Edit:
Actually, I am not sure how to find out that the script executed. I used echo(prints to stdout) and touch(creates new file ...
_cmd_=mylabel;/home/user/somepath/test.sh;
It seems that is is associated with the button.
Edit:
Actually, I am not sure how to find out that the script executed. I used echo(prints to stdout) and touch(creates new file ...
- Thu Dec 31, 2020 9:16 am
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Re: Using toolbar custom button to run bash script
No I am not. After selecting .sh file, marked as executable and working using terminal, it doesn't give me any sort of error message, but it still shows only _cmd_ . This should change when correctly associated with the script, right? Thanks.
- Wed Dec 30, 2020 10:04 pm
- Forum: MP - General Support
- Topic: Using toolbar custom button to run bash script
- Replies: 8
- Views: 984
Using toolbar custom button to run bash script
Hi,
I am looking for a way to run a bash or python script. The easiest way I come across is creating a custom button . But I am not able to get it working attaching .sh file to the command. Is it somehow possible? I believe that exe and bat files won't work for me as I work on unix(Fedora). Thank ...
I am looking for a way to run a bash or python script. The easiest way I come across is creating a custom button . But I am not able to get it working attaching .sh file to the command. Is it somehow possible? I believe that exe and bat files won't work for me as I work on unix(Fedora). Thank ...