How do I redirect from a built-in bin to execute an AppImage instead?How do I use sudo to redirect output to a location I don't have permission to write to?How to redirect output to a file and stdoutHow can I redirect and append both stdout and stderr to a file with Bash?How to download a file from server using SSH?Why can't I set the JAVA_HOME VARIABLE in Ubuntu 12.04?Using multiple versions of java in ubuntuediting .bashrc does not change JAVA_HOMEManually built python 2.7.10 on GNU/Linux loads .so of old python2.7.6 installed from packagesReplace default perl on Ubuntu 16.04in which order will ubuntu search bin-folders for executables?

Why does (inf + 0j)*1 evaluate to inf + nanj?

Is the order of words purely based on convention?

Why is STARTTLS still used?

Suffocation while cooking under an umbrella?

How to deal with a Homophobic PC

Passiflora Snow Queen is drying out

Why, even after his imprisonment, people keep calling Hannibal Lecter "Doctor"?

How to justify getting additional team member when the current team is doing well?

Are fuzzy sets appreciated by OR community?

How do you program Babbage's Difference Engine?

There are 51 natural numbers between 1-100, proof that there are 2 numbers such that the difference between them equals to 5

Why is 6. Nge2 better, and 7. d5 a necessary push in this game?

I am not a pleasant sight

A food item only made possible by time-freezing storage?

Why is a road bike faster than a city bike with the same effort? How much faster it can be?

Do we have any particular tonal center in mind when we are NOT listening music?

Does every piano need tuning every year?

What does Sartre mean by "pédéraste" - pederast or homosexual?

Why is volatility skew/smile for long term options flatter compare to short term options?

We are on WHV, my boyfriend was in a small collision, we are leaving in 2 weeks what happens if we don’t pay the damages?

A famous scholar sent me an unpublished draft of hers. Then she died. I think her work should be published. What should I do?

Interchange `colon` and `:`

With an option to reduce any pair satisfying a relation, repeatedly reduce a collection.

Difference between types of yeast



How do I redirect from a built-in bin to execute an AppImage instead?


How do I use sudo to redirect output to a location I don't have permission to write to?How to redirect output to a file and stdoutHow can I redirect and append both stdout and stderr to a file with Bash?How to download a file from server using SSH?Why can't I set the JAVA_HOME VARIABLE in Ubuntu 12.04?Using multiple versions of java in ubuntuediting .bashrc does not change JAVA_HOMEManually built python 2.7.10 on GNU/Linux loads .so of old python2.7.6 installed from packagesReplace default perl on Ubuntu 16.04in which order will ubuntu search bin-folders for executables?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Scenario: the current version of Kate in Ubuntu 18LTS points at their customized version (which doesn't appear to support regex search capability). The bin is: /usr/bin/kate.



Desired solution: run the Kate AppImage (which has the regex search/replace functionality). The AppImage currently resides in ~/Downloads.



Question: how do I redirect the system to execute the AppImage version of Kate, instead of the built-in version?



Can I simply create a link to the AppImage in /usr/bin?










share|improve this question
































    1















    Scenario: the current version of Kate in Ubuntu 18LTS points at their customized version (which doesn't appear to support regex search capability). The bin is: /usr/bin/kate.



    Desired solution: run the Kate AppImage (which has the regex search/replace functionality). The AppImage currently resides in ~/Downloads.



    Question: how do I redirect the system to execute the AppImage version of Kate, instead of the built-in version?



    Can I simply create a link to the AppImage in /usr/bin?










    share|improve this question




























      1












      1








      1


      2






      Scenario: the current version of Kate in Ubuntu 18LTS points at their customized version (which doesn't appear to support regex search capability). The bin is: /usr/bin/kate.



      Desired solution: run the Kate AppImage (which has the regex search/replace functionality). The AppImage currently resides in ~/Downloads.



      Question: how do I redirect the system to execute the AppImage version of Kate, instead of the built-in version?



      Can I simply create a link to the AppImage in /usr/bin?










      share|improve this question
















      Scenario: the current version of Kate in Ubuntu 18LTS points at their customized version (which doesn't appear to support regex search capability). The bin is: /usr/bin/kate.



      Desired solution: run the Kate AppImage (which has the regex search/replace functionality). The AppImage currently resides in ~/Downloads.



      Question: how do I redirect the system to execute the AppImage version of Kate, instead of the built-in version?



      Can I simply create a link to the AppImage in /usr/bin?







      linux ubuntu hardlink kate appimage






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 30 at 22:42









      Kurt Pfeifle

      68.2k15 gold badges186 silver badges283 bronze badges




      68.2k15 gold badges186 silver badges283 bronze badges










      asked Mar 28 at 18:11









      Jay MarmJay Marm

      4163 silver badges11 bronze badges




      4163 silver badges11 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          0
















          Yes, it appears you can... i.e. in my case I replaced the existing kate bin with a link that points to the appimage:



          # 1st remove the existing kate binary
          # (cp kate somewhere first if you want to keep a copy)
          sudo rm /usr/bin/kate

          # 2nd create a link in the system bin that points to the appimage
          sudo link [directory where the appimage resides]/Kate.AppImage /usr/bin/kate


          Done! The system will now execute the appimage when 'kate' is executed (e.g. via context menus).



          =========================



          UPDATE...



          The above solution kinda works... it does run the appimage, however the parameters normally passed to kate (i.e. file to open) are lost in the hard link.



          So... the better solution is to create a simple executable shell script (named 'kate' in the /usr/bin directory) to execute the appimage:



          #!/bin/sh
          exec [directory where the appimage resides]/Kate.AppImage "$@"


          This passes any provided parms to the appimage.






          share|improve this answer


































            0
















            You may want to keep (for whatever reasons) your system-installed Kate in /usr/bin/kate...



            Then do not touch it. Instead create a directory in your $HOME named bin (it may already be present depending on the Linux distro you run).



            Inside that directory, create a symlink:



            ln -sf ~/Downloads/kate.AppImage ~/bin/kate


            This may already work. If not, you have to move the ~/bin directory to the front of your path:



            export PATH=$HOME/bin:$PATH # if you use Bash


            To permanently modify this $PATH, add this same line into $HOME/.bashrc






            share|improve this answer



























              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );














              draft saved

              draft discarded
















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55404289%2fhow-do-i-redirect-from-a-built-in-bin-to-execute-an-appimage-instead%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0
















              Yes, it appears you can... i.e. in my case I replaced the existing kate bin with a link that points to the appimage:



              # 1st remove the existing kate binary
              # (cp kate somewhere first if you want to keep a copy)
              sudo rm /usr/bin/kate

              # 2nd create a link in the system bin that points to the appimage
              sudo link [directory where the appimage resides]/Kate.AppImage /usr/bin/kate


              Done! The system will now execute the appimage when 'kate' is executed (e.g. via context menus).



              =========================



              UPDATE...



              The above solution kinda works... it does run the appimage, however the parameters normally passed to kate (i.e. file to open) are lost in the hard link.



              So... the better solution is to create a simple executable shell script (named 'kate' in the /usr/bin directory) to execute the appimage:



              #!/bin/sh
              exec [directory where the appimage resides]/Kate.AppImage "$@"


              This passes any provided parms to the appimage.






              share|improve this answer































                0
















                Yes, it appears you can... i.e. in my case I replaced the existing kate bin with a link that points to the appimage:



                # 1st remove the existing kate binary
                # (cp kate somewhere first if you want to keep a copy)
                sudo rm /usr/bin/kate

                # 2nd create a link in the system bin that points to the appimage
                sudo link [directory where the appimage resides]/Kate.AppImage /usr/bin/kate


                Done! The system will now execute the appimage when 'kate' is executed (e.g. via context menus).



                =========================



                UPDATE...



                The above solution kinda works... it does run the appimage, however the parameters normally passed to kate (i.e. file to open) are lost in the hard link.



                So... the better solution is to create a simple executable shell script (named 'kate' in the /usr/bin directory) to execute the appimage:



                #!/bin/sh
                exec [directory where the appimage resides]/Kate.AppImage "$@"


                This passes any provided parms to the appimage.






                share|improve this answer





























                  0














                  0










                  0









                  Yes, it appears you can... i.e. in my case I replaced the existing kate bin with a link that points to the appimage:



                  # 1st remove the existing kate binary
                  # (cp kate somewhere first if you want to keep a copy)
                  sudo rm /usr/bin/kate

                  # 2nd create a link in the system bin that points to the appimage
                  sudo link [directory where the appimage resides]/Kate.AppImage /usr/bin/kate


                  Done! The system will now execute the appimage when 'kate' is executed (e.g. via context menus).



                  =========================



                  UPDATE...



                  The above solution kinda works... it does run the appimage, however the parameters normally passed to kate (i.e. file to open) are lost in the hard link.



                  So... the better solution is to create a simple executable shell script (named 'kate' in the /usr/bin directory) to execute the appimage:



                  #!/bin/sh
                  exec [directory where the appimage resides]/Kate.AppImage "$@"


                  This passes any provided parms to the appimage.






                  share|improve this answer















                  Yes, it appears you can... i.e. in my case I replaced the existing kate bin with a link that points to the appimage:



                  # 1st remove the existing kate binary
                  # (cp kate somewhere first if you want to keep a copy)
                  sudo rm /usr/bin/kate

                  # 2nd create a link in the system bin that points to the appimage
                  sudo link [directory where the appimage resides]/Kate.AppImage /usr/bin/kate


                  Done! The system will now execute the appimage when 'kate' is executed (e.g. via context menus).



                  =========================



                  UPDATE...



                  The above solution kinda works... it does run the appimage, however the parameters normally passed to kate (i.e. file to open) are lost in the hard link.



                  So... the better solution is to create a simple executable shell script (named 'kate' in the /usr/bin directory) to execute the appimage:



                  #!/bin/sh
                  exec [directory where the appimage resides]/Kate.AppImage "$@"


                  This passes any provided parms to the appimage.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 29 at 0:51

























                  answered Mar 28 at 18:31









                  Jay MarmJay Marm

                  4163 silver badges11 bronze badges




                  4163 silver badges11 bronze badges


























                      0
















                      You may want to keep (for whatever reasons) your system-installed Kate in /usr/bin/kate...



                      Then do not touch it. Instead create a directory in your $HOME named bin (it may already be present depending on the Linux distro you run).



                      Inside that directory, create a symlink:



                      ln -sf ~/Downloads/kate.AppImage ~/bin/kate


                      This may already work. If not, you have to move the ~/bin directory to the front of your path:



                      export PATH=$HOME/bin:$PATH # if you use Bash


                      To permanently modify this $PATH, add this same line into $HOME/.bashrc






                      share|improve this answer





























                        0
















                        You may want to keep (for whatever reasons) your system-installed Kate in /usr/bin/kate...



                        Then do not touch it. Instead create a directory in your $HOME named bin (it may already be present depending on the Linux distro you run).



                        Inside that directory, create a symlink:



                        ln -sf ~/Downloads/kate.AppImage ~/bin/kate


                        This may already work. If not, you have to move the ~/bin directory to the front of your path:



                        export PATH=$HOME/bin:$PATH # if you use Bash


                        To permanently modify this $PATH, add this same line into $HOME/.bashrc






                        share|improve this answer



























                          0














                          0










                          0









                          You may want to keep (for whatever reasons) your system-installed Kate in /usr/bin/kate...



                          Then do not touch it. Instead create a directory in your $HOME named bin (it may already be present depending on the Linux distro you run).



                          Inside that directory, create a symlink:



                          ln -sf ~/Downloads/kate.AppImage ~/bin/kate


                          This may already work. If not, you have to move the ~/bin directory to the front of your path:



                          export PATH=$HOME/bin:$PATH # if you use Bash


                          To permanently modify this $PATH, add this same line into $HOME/.bashrc






                          share|improve this answer













                          You may want to keep (for whatever reasons) your system-installed Kate in /usr/bin/kate...



                          Then do not touch it. Instead create a directory in your $HOME named bin (it may already be present depending on the Linux distro you run).



                          Inside that directory, create a symlink:



                          ln -sf ~/Downloads/kate.AppImage ~/bin/kate


                          This may already work. If not, you have to move the ~/bin directory to the front of your path:



                          export PATH=$HOME/bin:$PATH # if you use Bash


                          To permanently modify this $PATH, add this same line into $HOME/.bashrc







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 30 at 22:41









                          Kurt PfeifleKurt Pfeifle

                          68.2k15 gold badges186 silver badges283 bronze badges




                          68.2k15 gold badges186 silver badges283 bronze badges































                              draft saved

                              draft discarded















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55404289%2fhow-do-i-redirect-from-a-built-in-bin-to-execute-an-appimage-instead%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                              용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                              155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해