mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
265 stars 143 forks source link

Propblem open file by command + argument. #1687

Open tele1 opened 1 year ago

tele1 commented 1 year ago

Expected behaviour

I should be able to run the file with the application + its arguments.

Working in Thunar file manager.

Actual behaviour

I can not open file with command app. Let's say it works, but if there is no option in command.

Working on Thunar file manager.

Steps to reproduce the behaviour

https://forums.linuxmint.com/viewtopic.php?p=2267783#p2267783

Other way is create empty file and bash script

m.script

#!/bin/bash

echo "0= $0 ; 1= $1 ; 2= $2" >> x.log
echo "%f" >> x.log

Set right click in Caja file manager command
'/your/path/to/m.script' 11 12 13 14

Try open empty file with m.script x.log should be created with contents

0= /home/user_name/Desktop/test/Caja/m.script ; 1= 11 ; 2= 12
%f

Log is not even created in caja file manager. Command / m.script not working.

MATE general version

$ inxi -Fxxrzc0
System:
  Kernel: 5.15.0-56-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: MATE 1.26.0 wm: marco dm: LightDM
    Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)

Package version

$ dpkg -l | grep $(dpkg -S $(locate caja | grep bin | grep /caja$) | awk -F':' '{print $1}') | awk '{print $2 , $3}' | grep  ^"caja "
caja 1.26.0-1ubuntu1

Link to bugreport of your Distribution (requirement)

Repository Ubuntu

$ LC_ALL=C apt policy caja
caja:
  Installed: 1.26.0-1ubuntu1
  Candidate: 1.26.0-1ubuntu1
  Version table:
 *** 1.26.0-1ubuntu1 500
        500 http://pl.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status
$ apt-cache show caja | grep 'Maintainer\|Original-Maintainer\|Bugs'
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian+Ubuntu MATE Packaging Team <debian-mate@lists.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
$ apt show caja | grep "Maintainer\|Original-Maintainer\|Bugs"

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian+Ubuntu MATE Packaging Team <debian-mate@lists.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug