Changed some names to be more accurate.  I have an app that I can run from terminal.  The app exists in a folder in my home directory named ZereneStacker.  The name of the app is also ZereneStacker.  Right now, I only know how to run it from terminal and I do that like this.    cd ZereneStacker ./ZereneStacker.bsh   It runs fine this way.  I created a .desktop file in /usr/share/applications and named it zerene.desktop.  I made it executable. Here is the contents of zerene.desktop:  [Desktop Entry] Version=1.0 Name=Zerene Focus Stacker Comment=Focus Stacker GenericName=Focus Stacker Exec=./ZereneStacker.bsh Path=~/ZereneStacker Terminal=false Type=Application Categories=Photography StartupNotify=true   I stole most of this from another working .desktop file. When I try and click on the icon in /usr/share/applications, I get "There was an error launching this application".  Since I know it loads fine when I do it form the terminal command line as outlined above, I know the problem is with what I did and not the program.  Sorry I tried to be generic in the original message to "simplify" only to have that backfire on me now.
123070
I am using Ubuntu 13.04, I recently downloaded Fritzing .tar.bz2 , which I extracted it &amp; there is one .sh file, which I have to execute everytime from terminal to run the application.  My question is, Is it possible to create a launcher of Fritzing &amp; make it show up in Applications in Dash ? If it is, then please help me out with steps.  Thank you.
92376
I tried to open Software Center using the command line   software-center   and it did work. I mean, Software Center opened and works fine, BUT, at the same time, in the Terminal window I see a lot of strange errors. How can that be? I'm puzzled.   Is there any explanation for this (and a fix for it)? I repeat, the app does open and it works fine, is only the lines in the background that show that something is not all right.  Here are the screen-shots with all the lines.
94526
We have  to modify the environment of the command we want to run (for example env MANPAGER=more man dtrace). Is there something similar but for modifying the directory that the command is going to be started in?  Ideally, I would like it to look like this:  theMagicCommand /new/cwd myProgram   This way it could be "chained" with other env(1)-like commands, e.g.,  daemon -p /tmp/pid env VAR=value theMagicCommand /new/cwd myProgram     So far I can think of the following solution, which unfortunately does not have the same interface as env(1):  cd /new/cwd &amp;&amp; myProgram   Also, I can just create a simple shell script like this:  #! /bin/sh - cd "${1:?Missing the new working directory}" || exit 1 shift exec "${@:?Missing the command to run}"   but I am looking for something that already exists (at least on macOS and FreeBSD).  myProgram is not necessarily a desktop application (in which case I could just use the ).
96997
ALL,  This post is spawned by   In my Xcode I added the new Build Phase to copy .dylib files to /usr/local/lib. And then I tried to rebuiold the application by doing "Command + B".  However, since the destination should be accessed thru the root account I received an error couldn't create directory /usr/local/lib: Permission denied.  This is correct as the Xcode is started by the regular user and not root. So now I am looking for a way to execute just this build phase as root.  In the question mentioned above I got a direction that OSX is a *nix and the process is the same. While I agree that OSX is a *nix, the process of building/installing are different. On *nix you issue make as a regular user, just as you do Command + B in Xcode. But then when it finishes building in *nix you issue a separate command sudo make install, which installs all the libraries and binaries in /usr/local/lib and /usr/local/bin. All IDE on *nix (such as Anjuta and KDevelop) has extra menu to it which when selected ask about the root password and perform the install as root  And so what I am looking for is for Xcode to ask me about the root password in order to execute this Build Phase I added to copy my dylib's, because I am not familiar with this IDE.  TIA!  [EDIT]  Igors-MacBook-Air:~ igorkorot$ ls -la /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/ total 17344 drwxr-xr-x  13 igorkorot  staff      416 Jun  9 18:35 . drwxr-xr-x@  4 igorkorot  staff      128 Nov 16  2018 .. drwxr-xr-x   3 igorkorot  staff       96 Jun 10 20:05 dbhandler.app -rwxr-xr-x   1 igorkorot  staff   129856 Jun  9 18:34 liblibdbloader.dylib -rwxr-xr-x   1 igorkorot  staff  1002940 Jun  9 18:35 liblibdbwindow.dylib -rwxr-xr-x   1 igorkorot  staff  1671068 Jun  9 18:35 liblibdialogs.dylib -rwxr-xr-x   1 igorkorot  staff   148244 Jun  9 18:34 liblibfieldswindow.dylib -rwxr-xr-x   1 igorkorot  staff   587976 Jun  9 18:33 liblibmysql.dylib -rwxr-xr-x   1 igorkorot  staff   799272 Jun  9 18:33 liblibodbc.dylib -rwxr-xr-x   1 igorkorot  staff   611680 Jun  9 18:33 liblibpostgres.dylib -rwxr-xr-x   1 igorkorot  staff   482852 Jun  9 18:33 liblibpropertypages.dylib -rwxr-xr-x   1 igorkorot  staff  1619172 Jun  9 18:34 liblibshapeframework.dylib -rwxr-xr-x   1 igorkorot  staff  1810304 Jun  9 18:33 liblibsqlite.dylib   And so I tried to add LD_LIBRARY_PATH as /Users/igorkorot/dbhandler/dbhandler/Build/Products/Debug/, but trying to run it (dbhandler.app) from inside Xcode, the program still crashes. Changing the variable to be DYLD_LIBRARY_PATH doesn't make a difference.  I also thought that having the libraries (dylib's) in the same directory as application bundle is all there is to need to successfully start the application and keep the linker satisfied. Apparently I was wrong.  [/EDIT]  [EDIT2]  Please refer to the screenshot below.  [/EDIT2]  [EDIT3]  And this is how it looks like in Xcode:  [/EDIT3]
98139
Let's suppose I have compiled something and I run it like so:  $ /path/to/my/executable/mycmd Hello World   What do I need to do to run it like   $ mycmd Hello World    from everywhere in my computer?
85598
When I start a program from a terminal I can't use that terminal instance again until I close the program.  Is there a way to execute a program/application from a terminal without blocking the terminal until the program ends?
36903
How can I make a Click-once deployed app run a startup?  The best option I found by searching was to set the Publisher on the app to Startup, so the Start menu shortcut would be placed in the Startup folder, but that seems like a huge hack and I would like there to be a Start menu icon people can find.  What options do I have?
8558
I would like to ask a very basic question but I have never thought about it before. Well, when someone installs an application from terminal, he has to add the repository first, right? On the other side, when someone installs an application from the Ubuntu Software Center, is the repository then added automatically?  I am asking those questions to figure out this: When I run update and then upgrade, will this application be upgraded or not? Is the result same in two options?
92264
My goal is to include in a zip file what amounts to a shortcut, instead of telling my customer(s) to open up Terminal and run a shell script.  My deployable essentially looks like this:  $ unzip Deliverable.zip  $ cd Deliverable; ls app.jar run.sh   Script in run.sh:  #!/bin/sh java -jar app.jar   There's a lot more in the directory; suffice to say I need to run the script from the directory Deliverable since I need to access paths relative to it.  However, I can't guarantee where a customer is going to open Deliverable.zip (could be home directory, could be right in the Downloads directory, etc.)  I found  that describes how to create a new workflow in Automator, then save it as an application to launch a shell script.  I tried to do that to wrap run.sh but it says it can't find run.sh.  Somebody suggested I use applescript and also sent me a link to how to use applescript to switch into the current directory; there's an applescript "action" in automator; so I made a new workflow with that, and saved it as an application.  This is what that looks like:    The code:  on run {input, parameters}     tell application "Finder"         set current_path to container of (path to me) as alias     end tell      do shell script "java -jar app.jar"       return input end run   And this is the error I get when I run it:    C'mon, this should be pretty simple.  What I am doing wrong here?
68357
With Ubuntu 16.04, if you create a launcher (desktop file in ~/.local/share/applications) with a custom icon for a terminal application (so with Terminal=true) then when you start it, it will spawn a new standard terminal icon, and your custom icon will pulse and disappear within a few seconds.  In 14.04, it just worked as expected. (it would not start a new standard terminal icon).   Any idea what to do to change this behaviour? I have a few terminal apps that I want to launch from unity and the new behaviour is problematic (I lose trace of which is which since they all end up with the standard terminal icon)...
83082
I'm finding it difficult to phrase this question well, as there are quite a few generic terms (run, configuration, launch, etc.). Here goes:  You can . (in the Run Configuration Dialog, under the Common tab, Save as a shared file.  We check these in to SVN. The developers can pass them around, and it helps getting new devs running a working application quicker.  I'd like to check these out as part of our build and use them to programatically run the application, the tests, etc, without spinning up the whole IDE.  What would be the best way to run a .launch file outside of the UI?   Edit: I am trying to unify the tests run on the build server and the IDE. I do not  particularly want to give up integrated debugging, which would be the case with an ant script to run the tests .  This is probably more a problem for integration testing with multiple bundles, or unit testing a whole bundle, where you'd like to mock up extensions.
6208
I'm trying to run an executable (testdisk) but double click doesn't work. The only way is to run:  sudo ./testdisk   from terminal. But I'd like to open executables with double click in future. How can I do this?
120300
Here are some of the directories where .desktop files describing applications can be found:  ~/local/.share/applications /usr/share/applications /usr/share/app-install/desktop   Perhaps there are even more of them. What is the actual purpose of every particular one to exist and into which should I put my application .desktop file in what a case?  And where are application icons put to be found as referenced in the .desktop files?
36858
I want to run a system command from inside my application. It's suppose to run a command on a remote server using SSH. But that's not really the point. The point is that I don't know how to run any kind of command from the app. I asked in the mail list and they referred me to build a QML extension using C++. But I don't know C++ and it seems that I have to learn so much only to run a simple command.  In Python (as in PHP) it's easy to run a system command. Is there any other way of doing it in my Touch app, or is there someone that could help me even more? Or perhaps have a better solution to my problem?
26732
I'm able to locate stuff with the dash home then drag it down to the launcher bar on the left of the desktop, but what if the application installed via Wine isn't found via the dash search? I've right clicked on the application in the .wine directory and found no options to create a launcher either.
29065
Searching on the dash, I can see the program listed as "Personal File Sharing". How can I find the executable name of this program such that it can be launched in a terminal?
13057
I have this directory /foo/bar/. Inside, I have a python file named myfile.py. I made it executable by adding (at the top):  #!/usr/bin/env python   Then, I made it executable by issuing   chmod +x myfile.py   I edited my path by issuing  sudo nano /etc/paths   I added /foo/bar/ to it.  The problem is that although I can run myfile.py by typing ./myfile.py while I am inside /foo/bar/, it doesn't work from any other location. What am I doing wrong?  Thank you.