Add custom menu action to Caja file manager

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












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.







share|improve this question




















  • 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















up vote
0
down vote

favorite
1












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.







share|improve this question




















  • 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













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





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.







share|improve this question












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.









share|improve this question











share|improve this question




share|improve this question










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

















  • 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











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.



enter image description here



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.



enter image description here






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.



    enter image description here



    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.



    enter image description here






    share|improve this answer


























      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.



      enter image description here



      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.



      enter image description here






      share|improve this answer
























        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.



        enter image description here



        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.



        enter image description here






        share|improve this answer














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



        enter image description here



        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.



        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 17 at 0:17

























        answered Mar 17 at 0:08









        cipricus

        2,560850121




        2,560850121






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)