Add custom menu action to Caja file manager

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with
sudo apt install caja-actions
But it doesn't seem to work, as indicated here.
In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).
How to create such actions manually?
This is posted in order to provide an answer.
mate caja
add a comment |Â
up vote
0
down vote
favorite
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with
sudo apt install caja-actions
But it doesn't seem to work, as indicated here.
In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).
How to create such actions manually?
This is posted in order to provide an answer.
mate caja
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with
sudo apt install caja-actions
But it doesn't seem to work, as indicated here.
In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).
How to create such actions manually?
This is posted in order to provide an answer.
mate caja
There should be a tool to create such actions in Caja (default file manager in Mate desktop environment), installed with
sudo apt install caja-actions
But it doesn't seem to work, as indicated here.
In my case, this tool is in the start menu, but it doesn't launch (Mint Mate 18.3, based on Ubuntu 16.04).
How to create such actions manually?
This is posted in order to provide an answer.
mate caja
asked Mar 16 at 23:58
cipricus
2,560850121
2,560850121
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20
add a comment |Â
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
It works in the same way as for Nautilus and PCManFM, after installing caja-actions and ensuring it is selected in Caja - Preferences - Extensions.

Create the folder ~/.local/share/file-manager/actions.
With xed as text manager - adding an action to open a file as text, open a terminal and run
xed ~/.local/share/file-manager/actions/open_as_text.desktop
with these lines:
[Desktop Entry]
Type=Action
Tooltip=Open as text
Name=Open as text
Profiles=profile-zero;
Icon=xed
[X-Action-Profile profile-zero]
MimeTypes=all/all;
Exec=xed %f
Name=Open as text
Save and restart Caja.

add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
It works in the same way as for Nautilus and PCManFM, after installing caja-actions and ensuring it is selected in Caja - Preferences - Extensions.

Create the folder ~/.local/share/file-manager/actions.
With xed as text manager - adding an action to open a file as text, open a terminal and run
xed ~/.local/share/file-manager/actions/open_as_text.desktop
with these lines:
[Desktop Entry]
Type=Action
Tooltip=Open as text
Name=Open as text
Profiles=profile-zero;
Icon=xed
[X-Action-Profile profile-zero]
MimeTypes=all/all;
Exec=xed %f
Name=Open as text
Save and restart Caja.

add a comment |Â
up vote
1
down vote
accepted
It works in the same way as for Nautilus and PCManFM, after installing caja-actions and ensuring it is selected in Caja - Preferences - Extensions.

Create the folder ~/.local/share/file-manager/actions.
With xed as text manager - adding an action to open a file as text, open a terminal and run
xed ~/.local/share/file-manager/actions/open_as_text.desktop
with these lines:
[Desktop Entry]
Type=Action
Tooltip=Open as text
Name=Open as text
Profiles=profile-zero;
Icon=xed
[X-Action-Profile profile-zero]
MimeTypes=all/all;
Exec=xed %f
Name=Open as text
Save and restart Caja.

add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
It works in the same way as for Nautilus and PCManFM, after installing caja-actions and ensuring it is selected in Caja - Preferences - Extensions.

Create the folder ~/.local/share/file-manager/actions.
With xed as text manager - adding an action to open a file as text, open a terminal and run
xed ~/.local/share/file-manager/actions/open_as_text.desktop
with these lines:
[Desktop Entry]
Type=Action
Tooltip=Open as text
Name=Open as text
Profiles=profile-zero;
Icon=xed
[X-Action-Profile profile-zero]
MimeTypes=all/all;
Exec=xed %f
Name=Open as text
Save and restart Caja.

It works in the same way as for Nautilus and PCManFM, after installing caja-actions and ensuring it is selected in Caja - Preferences - Extensions.

Create the folder ~/.local/share/file-manager/actions.
With xed as text manager - adding an action to open a file as text, open a terminal and run
xed ~/.local/share/file-manager/actions/open_as_text.desktop
with these lines:
[Desktop Entry]
Type=Action
Tooltip=Open as text
Name=Open as text
Profiles=profile-zero;
Icon=xed
[X-Action-Profile profile-zero]
MimeTypes=all/all;
Exec=xed %f
Name=Open as text
Save and restart Caja.

edited Mar 17 at 0:17
answered Mar 17 at 0:08
cipricus
2,560850121
2,560850121
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430705%2fadd-custom-menu-action-to-caja-file-manager%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
If the question above seems stupid - I don't wanna die stupid: Please add a comment saying why the down-vote - in order to show what can be fixed or at least to tell me what is wrong.
â cipricus
Mar 17 at 0:20