How to run a command in a snap packageHow to use snaps via the CLI and GUI?Starting EasyVPN Snap VPN on boot systemdHow to sideload my own/snapcraft example app?Snappy Ubuntu Core: snap installation doesn't copy filesAdd a python dependency to to a snap packageDeveloping a Snap package for a project using Java/Swingpyqt Snap builds successful, fails to runIs snap portable across other UNIX (example macOS)?setting a tcl/tk library path inside a snap packageUbuntu snap plugin 'autotools' default 'make install' to be skipped while building with snapcraftTelegram-desktop snap package doesn't run after rebootsnap apps now won't start with “cannot perform readlinkat()” error

Does the neutral wire have any voltage?

What is a common way to tell if an academic is "above average," or outstanding in their field? Is their h-index (Hirsh index) one of them?

What's the 2-minute timer on mobile Deutsche Bahn tickets?

As a GM, is it bad form to ask for a moment to think when improvising?

Why didn't this character get a funeral at the end of Avengers: Endgame?

How can I obtain and work with a Platonic dodecahedron?

In "Avengers: Endgame", what does this name refer to?

Intersections in Tikz

GitLab account hacked and repo wiped

How to speed up large double sums in a table?

Can you figure out this language?

Why are oscilloscope input impedances so low?

Why does blending blueberries, milk, banana and vanilla extract cause the mixture to have a yogurty consistency?

What happens if I accidentally leave an app running and click "Install Now" in Software Updater?

My large rocket is still flipping over

What is the thing used to help pouring liquids called?

Counting the Number of Real Roots of A Polynomial

How important are good looking people in a novel/story?

Has the United States ever had a non-Christian President?

Is it normal for gliders not to have attitude indicators?

Where did Lovecraft write about Carcosa?

Determine if a grid contains another grid

Copper as an adjective to refer to something made of copper

Get RecordId in LWC From Community Page



How to run a command in a snap package


How to use snaps via the CLI and GUI?Starting EasyVPN Snap VPN on boot systemdHow to sideload my own/snapcraft example app?Snappy Ubuntu Core: snap installation doesn't copy filesAdd a python dependency to to a snap packageDeveloping a Snap package for a project using Java/Swingpyqt Snap builds successful, fails to runIs snap portable across other UNIX (example macOS)?setting a tcl/tk library path inside a snap packageUbuntu snap plugin 'autotools' default 'make install' to be skipped while building with snapcraftTelegram-desktop snap package doesn't run after rebootsnap apps now won't start with “cannot perform readlinkat()” error






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








19















I have read some tutorials about Snapcraft and snappy and I am really excited about it.



I am using 16.04 and used snap find to find and install the ubuntu-calculator-app snap. But I don't know how to start it.



It is neither in my Dash (Unity 7) nor in my path (using zsh)



Also, I followed the instructions in this blog post



To create a links snap and install it. But, again, I don't know how to start the app.



Thanks for your help










share|improve this question






























    19















    I have read some tutorials about Snapcraft and snappy and I am really excited about it.



    I am using 16.04 and used snap find to find and install the ubuntu-calculator-app snap. But I don't know how to start it.



    It is neither in my Dash (Unity 7) nor in my path (using zsh)



    Also, I followed the instructions in this blog post



    To create a links snap and install it. But, again, I don't know how to start the app.



    Thanks for your help










    share|improve this question


























      19












      19








      19


      4






      I have read some tutorials about Snapcraft and snappy and I am really excited about it.



      I am using 16.04 and used snap find to find and install the ubuntu-calculator-app snap. But I don't know how to start it.



      It is neither in my Dash (Unity 7) nor in my path (using zsh)



      Also, I followed the instructions in this blog post



      To create a links snap and install it. But, again, I don't know how to start the app.



      Thanks for your help










      share|improve this question
















      I have read some tutorials about Snapcraft and snappy and I am really excited about it.



      I am using 16.04 and used snap find to find and install the ubuntu-calculator-app snap. But I don't know how to start it.



      It is neither in my Dash (Unity 7) nor in my path (using zsh)



      Also, I followed the instructions in this blog post



      To create a links snap and install it. But, again, I don't know how to start the app.



      Thanks for your help







      ubuntu-core 16.04 calculator snap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 21 '16 at 13:06









      David Planella

      11.5k662123




      11.5k662123










      asked Apr 20 '16 at 15:09









      Alejandro VeraAlejandro Vera

      1,39721218




      1,39721218




















          4 Answers
          4






          active

          oldest

          votes


















          25














          Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.






          share|improve this answer

























          • Great. If you can point me where in the documentation is that path it would be great.

            – Alejandro Vera
            Apr 20 '16 at 16:51






          • 2





            append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

            – noobninja
            Nov 5 '16 at 6:00











          • Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

            – Marnix A. van Ammers
            Sep 14 '17 at 20:17











          • @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

            – Franklin Yu
            Mar 8 at 15:05


















          2














          Essentially, as Zygmunt was saying. For completeness, the other alternative is to run the app from the command line:



          ubuntu-calculator-app.calculator


          Check out the documentation on how to get started with snaps on classic Ubuntu.






          share|improve this answer
































            2














            Snaps can be run with snap run, so for the example in the question snap run ubuntu-calculator-app. But that is annoying so it is better to add snaps to your path. If the app is a gui, once you open it you can right-click on the launcher icon and select add to dash.



            Snaps are not in your path by default on 16.04. They are stored in /snap/bin. Since snaps are a system-wide installation it would probably be best to add this directory to your system-wide path. This is done via /etc/environment. The following can break stuff, so you should backup the file before editing it sudo cp /etc/environment /etc/environment.bak. Use an editor with sudo to open /etc/environment, and add :/snap/bin to the end of the PATH entry. Make sure you restart your terminal or source /etc/environment



            If that still doesn't work, you need to make sure your user .bashrc file has added /etc/environment to its sources. grep "source /etc/environment" ~/.bashrc will echo that line if it exists. If it doesn't echo "source /etc/evnironment" >> ~/.bashrc will add it.






            share|improve this answer
































              0














              Just including the path to the /snap/bin in the local ~/.bashrc works for me.



              Run the following



              • echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc

              • source ~/.bashrc





              share|improve this answer























                Your Answer








                StackExchange.ready(function()
                var channelOptions =
                tags: "".split(" "),
                id: "89"
                ;
                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/3.0/"u003ecc by-sa 3.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%2faskubuntu.com%2fquestions%2f759557%2fhow-to-run-a-command-in-a-snap-package%23new-answer', 'question_page');

                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                25














                Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.






                share|improve this answer

























                • Great. If you can point me where in the documentation is that path it would be great.

                  – Alejandro Vera
                  Apr 20 '16 at 16:51






                • 2





                  append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                  – noobninja
                  Nov 5 '16 at 6:00











                • Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                  – Marnix A. van Ammers
                  Sep 14 '17 at 20:17











                • @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                  – Franklin Yu
                  Mar 8 at 15:05















                25














                Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.






                share|improve this answer

























                • Great. If you can point me where in the documentation is that path it would be great.

                  – Alejandro Vera
                  Apr 20 '16 at 16:51






                • 2





                  append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                  – noobninja
                  Nov 5 '16 at 6:00











                • Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                  – Marnix A. van Ammers
                  Sep 14 '17 at 20:17











                • @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                  – Franklin Yu
                  Mar 8 at 15:05













                25












                25








                25







                Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.






                share|improve this answer















                Just log out and log back in. If you are upgrading from an earlier version of 16.04 development release you will not have /snap/bin in your PATH environment variable.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 25 '16 at 11:08









                David Planella

                11.5k662123




                11.5k662123










                answered Apr 20 '16 at 15:38









                Zygmunt KrynickiZygmunt Krynicki

                1,841177




                1,841177












                • Great. If you can point me where in the documentation is that path it would be great.

                  – Alejandro Vera
                  Apr 20 '16 at 16:51






                • 2





                  append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                  – noobninja
                  Nov 5 '16 at 6:00











                • Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                  – Marnix A. van Ammers
                  Sep 14 '17 at 20:17











                • @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                  – Franklin Yu
                  Mar 8 at 15:05

















                • Great. If you can point me where in the documentation is that path it would be great.

                  – Alejandro Vera
                  Apr 20 '16 at 16:51






                • 2





                  append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                  – noobninja
                  Nov 5 '16 at 6:00











                • Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                  – Marnix A. van Ammers
                  Sep 14 '17 at 20:17











                • @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                  – Franklin Yu
                  Mar 8 at 15:05
















                Great. If you can point me where in the documentation is that path it would be great.

                – Alejandro Vera
                Apr 20 '16 at 16:51





                Great. If you can point me where in the documentation is that path it would be great.

                – Alejandro Vera
                Apr 20 '16 at 16:51




                2




                2





                append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                – noobninja
                Nov 5 '16 at 6:00





                append PATH=$PATH:/snap/bin to end of ~/.bashrc file.

                – noobninja
                Nov 5 '16 at 6:00













                Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                – Marnix A. van Ammers
                Sep 14 '17 at 20:17





                Logging out and in didn't do it for me. I had to manually add /snap/bin to my PATH in my .bashrc file.

                – Marnix A. van Ammers
                Sep 14 '17 at 20:17













                @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                – Franklin Yu
                Mar 8 at 15:05





                @MarnixA.vanAmmers You should modify $PATH in .profile or .bash_profile, not in .bashrc; see How to correctly add a path to PATH?.

                – Franklin Yu
                Mar 8 at 15:05













                2














                Essentially, as Zygmunt was saying. For completeness, the other alternative is to run the app from the command line:



                ubuntu-calculator-app.calculator


                Check out the documentation on how to get started with snaps on classic Ubuntu.






                share|improve this answer





























                  2














                  Essentially, as Zygmunt was saying. For completeness, the other alternative is to run the app from the command line:



                  ubuntu-calculator-app.calculator


                  Check out the documentation on how to get started with snaps on classic Ubuntu.






                  share|improve this answer



























                    2












                    2








                    2







                    Essentially, as Zygmunt was saying. For completeness, the other alternative is to run the app from the command line:



                    ubuntu-calculator-app.calculator


                    Check out the documentation on how to get started with snaps on classic Ubuntu.






                    share|improve this answer















                    Essentially, as Zygmunt was saying. For completeness, the other alternative is to run the app from the command line:



                    ubuntu-calculator-app.calculator


                    Check out the documentation on how to get started with snaps on classic Ubuntu.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 22 '16 at 6:45

























                    answered Apr 20 '16 at 16:22









                    David PlanellaDavid Planella

                    11.5k662123




                    11.5k662123





















                        2














                        Snaps can be run with snap run, so for the example in the question snap run ubuntu-calculator-app. But that is annoying so it is better to add snaps to your path. If the app is a gui, once you open it you can right-click on the launcher icon and select add to dash.



                        Snaps are not in your path by default on 16.04. They are stored in /snap/bin. Since snaps are a system-wide installation it would probably be best to add this directory to your system-wide path. This is done via /etc/environment. The following can break stuff, so you should backup the file before editing it sudo cp /etc/environment /etc/environment.bak. Use an editor with sudo to open /etc/environment, and add :/snap/bin to the end of the PATH entry. Make sure you restart your terminal or source /etc/environment



                        If that still doesn't work, you need to make sure your user .bashrc file has added /etc/environment to its sources. grep "source /etc/environment" ~/.bashrc will echo that line if it exists. If it doesn't echo "source /etc/evnironment" >> ~/.bashrc will add it.






                        share|improve this answer





























                          2














                          Snaps can be run with snap run, so for the example in the question snap run ubuntu-calculator-app. But that is annoying so it is better to add snaps to your path. If the app is a gui, once you open it you can right-click on the launcher icon and select add to dash.



                          Snaps are not in your path by default on 16.04. They are stored in /snap/bin. Since snaps are a system-wide installation it would probably be best to add this directory to your system-wide path. This is done via /etc/environment. The following can break stuff, so you should backup the file before editing it sudo cp /etc/environment /etc/environment.bak. Use an editor with sudo to open /etc/environment, and add :/snap/bin to the end of the PATH entry. Make sure you restart your terminal or source /etc/environment



                          If that still doesn't work, you need to make sure your user .bashrc file has added /etc/environment to its sources. grep "source /etc/environment" ~/.bashrc will echo that line if it exists. If it doesn't echo "source /etc/evnironment" >> ~/.bashrc will add it.






                          share|improve this answer



























                            2












                            2








                            2







                            Snaps can be run with snap run, so for the example in the question snap run ubuntu-calculator-app. But that is annoying so it is better to add snaps to your path. If the app is a gui, once you open it you can right-click on the launcher icon and select add to dash.



                            Snaps are not in your path by default on 16.04. They are stored in /snap/bin. Since snaps are a system-wide installation it would probably be best to add this directory to your system-wide path. This is done via /etc/environment. The following can break stuff, so you should backup the file before editing it sudo cp /etc/environment /etc/environment.bak. Use an editor with sudo to open /etc/environment, and add :/snap/bin to the end of the PATH entry. Make sure you restart your terminal or source /etc/environment



                            If that still doesn't work, you need to make sure your user .bashrc file has added /etc/environment to its sources. grep "source /etc/environment" ~/.bashrc will echo that line if it exists. If it doesn't echo "source /etc/evnironment" >> ~/.bashrc will add it.






                            share|improve this answer















                            Snaps can be run with snap run, so for the example in the question snap run ubuntu-calculator-app. But that is annoying so it is better to add snaps to your path. If the app is a gui, once you open it you can right-click on the launcher icon and select add to dash.



                            Snaps are not in your path by default on 16.04. They are stored in /snap/bin. Since snaps are a system-wide installation it would probably be best to add this directory to your system-wide path. This is done via /etc/environment. The following can break stuff, so you should backup the file before editing it sudo cp /etc/environment /etc/environment.bak. Use an editor with sudo to open /etc/environment, and add :/snap/bin to the end of the PATH entry. Make sure you restart your terminal or source /etc/environment



                            If that still doesn't work, you need to make sure your user .bashrc file has added /etc/environment to its sources. grep "source /etc/environment" ~/.bashrc will echo that line if it exists. If it doesn't echo "source /etc/evnironment" >> ~/.bashrc will add it.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Feb 17 at 5:50

























                            answered Feb 17 at 5:21









                            David WarnkeDavid Warnke

                            213




                            213





















                                0














                                Just including the path to the /snap/bin in the local ~/.bashrc works for me.



                                Run the following



                                • echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc

                                • source ~/.bashrc





                                share|improve this answer



























                                  0














                                  Just including the path to the /snap/bin in the local ~/.bashrc works for me.



                                  Run the following



                                  • echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc

                                  • source ~/.bashrc





                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    Just including the path to the /snap/bin in the local ~/.bashrc works for me.



                                    Run the following



                                    • echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc

                                    • source ~/.bashrc





                                    share|improve this answer













                                    Just including the path to the /snap/bin in the local ~/.bashrc works for me.



                                    Run the following



                                    • echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc

                                    • source ~/.bashrc






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Apr 13 at 14:25









                                    Ritam ChakrabortyRitam Chakraborty

                                    14




                                    14



























                                        draft saved

                                        draft discarded
















































                                        Thanks for contributing an answer to Ask Ubuntu!


                                        • 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%2faskubuntu.com%2fquestions%2f759557%2fhow-to-run-a-command-in-a-snap-package%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

                                        Tamil (spriik) Luke uk diar | Nawigatjuun

                                        Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                                        Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?