[Solved] Always Use Wrapper When Launching Application

Hello all,
I've write a very simple wrapper for an application (mpv), and would like to always use my wrapper instead of the application.
As far as terminal goes, I did it by using an alias stored in the ~/.bashrc file (alias mpv='/usr/local/sbin/mpv_launch').
However, I'm not sure how to achieve the same when launching mpv from not within the terminal (Dolphin, in my case), in such case the .desktop file is used, which obviously calls mpv itself and not my wrapper.
Is there a way to globally convince the system to always run my wrapper whenever mpv is called, no matter how?
Thanks, Adam.
Last edited by adam777 (2013-05-31 13:46:12)

And one more option: which application gets run depends on the order of your PATH variable. I have "/home/drcouzelis/Library/bin" as the first path in my PATH variable. If I put an "mpv" Bash script in there, then the Bash script will run instead of the installed application.
# An example Bash script to start mpv fullscreen
/usr/bin/mpv -fs "$@"
...of course, if you make a Bash script called "mpv" that calls "mpv", make sure it calls "/usr/bin/mpv" and not itself!

Similar Messages

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • I Pod Touch game Dark Galaxy Freezes when launching application.  Previously worked.

    Recently purchased game Dark Galaxy for I Pod touch, has been played for several days.  Now when launching application will freeze up and unable to completely lauch.

    Try here:
    iOS: Troubleshooting applications purchased from the App Store

  • Using fonts when launching from JNLP

    Hello,
    I followed the directions in this link http://fxexperience.com/2010/05/how-to-embed-fonts/ and was able to add and use fonts in my javafx program when launched from Netbeans. But when I try to launch from JNLP, the fonts do not show up (the text shows up as Arial).
    Is there something special I need to do to access the fonts in the jar and utilize them?
    As the link directed I created a fonts folder in my src folder where I store all the .ttf file, and created a fonts.mf file in META-INF where I map a name to the font file. Works fine when launching from netbeans.
    thanks in advance for your help
    jose

    I've found the problem! It's the timestamp for the JNLP file. But unfortunately I can't figure out the workaround as yet.
    To explain the problem it would be best to start with my application's installation procedure:
    The applcation is installed by way of CD (using javaws -import) as downloading an 8mb jar file over dialup is unwieldy. Subsequent updates are retrieved from the server. Jardiffs are sent back to the webstart client so updates over dialup becomes manageble.
    The application jar file in the CD is version 1.0. Let's say the server is now at version 1.3 with the timestamp 2005-10-01 00:00:00.
    The user installs the application using the CD today which gives his JNLP file the timestamp of 2005-10-03 00:00:00.
    When the application is started, it calls the server to check for updates. Although the JNLP file returned from the server specifically states that the current version is at version 1.3 Java Web Start insists on using the timestamp to perform the comparison first.
    Since the timestamp of the JNLP file in the user's pc is dated later than the JNLP file in the server, Java Web Start ignores the version checking and assumes that the application in the server is the latest and greatest.
    Has anyone encountered a similiar situation? The only solution I can think of is to hack the JNLPDownloadServlet to return a date that's way in the future so that Java Web Start picks up the changes... sigh.
    Is it possible to disable the timestamp checking for the JNLP files? As again, help is mucho appreciated and there are 10 duke dollars at stake too :)

  • A strange box opens when launching application. It causes Firefox to freeze in place

    When launching the most recent version of Firefox a strange box appears at the top that effectively keeps me from using the browser. Also, I can't seem to add an image to this request.

    Add it in the Reply box.

  • How to display asia language title when launch application?

    jnlp is :
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
    spec="1.0+"
    codebase="<%= codebase %>">
    <information>
    <title>&#24212;&#29992;&#31243;&#24207;</title> //this is asia lanauage title
    <vendor></vendor>
    <description></description>
    </information>
    when launch app&#65292;the title showed as &#9633;&#9633;&#9633;&#9633;&#9633;&#65292; does i must convert asia language to unicode&#65311;

    your jnlp file starts with:
    <?xml version="1.0" encoding="utf-8"?>
    but is this title in utf-8 encoding ?
    /Dietz

  • Error -10810 when launching applications

    Hi, I have a Core 2 Duo LED screen MacBook Pro that I upgraded to Leopard. I did a clean install, and then imported my settings and documents using the migration assistant.
    When I try to launch certain applicatons, I get the following error message: "The application "(Application Name)" cannot be launched. -10810".
    The (Application Name) is the name of the application that cannot be launched. So far, it's happened with the following applications: Quicktime, Parallels Desktop, Google Earth, Slingplayer, Photoshop CS3, Safari, Quicksilver, and more. If I restart, then this problem stops with some applications, but keeps on going with others. There seems to be no pattern with this error, it just happens sometimes, and then doesn't. Can anyone help?

    In my machine, I have traced the problem to a bug in Microsoft IntelliPoint Mouse Driver Software Version 6.0 (v.147).
    The problem manifests itself when the wireless mouse battery is running low. When this happens, the Mouse Driver causes a dialog box to appear on the screen letting you know that your mouse is critically low. It has a way of dismissing the alert or postponing it until later.
    The problem is that neither of these function properly. If I postpone or dismiss, the Driver software immediately spawns a new dialog, over and over and over.
    I like to run my batteries down completely, so I moved the alert into the background. This is when things started to act up and I started to get the 10810 messages.
    When I replaced my batteries in the mouse, the dialog boxes stoppped and the error 10810 stopped.

  • Error running SendMail when launch application from JNI

    Hello,
    I am getting the following exception when I try to send email using JavaMail. This error began happening when we upgraded to Java 1.6. It does not happen with earlier versions of Java.
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
         javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary="----=_Part_0_2882193.1230049431911"
    I have browsed through the forums and read the many postings with a similar error. I have tried the variety of suggestions, but nothing seems to work. My understanding is the JAF is included in Java 1.6, so we should not need the activation.jar in our classpath anymore. Even so I have tried with and without the activation.jar in the classpath. I do not think it is a class loader issue because we do not build any of this into our application. It is all referenced in jar files on the classpath.
    The interesting thing is that I can launch the application with a normal JVM launch and it works just fine. The error only occurs when I launch the application from a C++ application using JNI. In both cases I am using the exact same classpath. The error occurs whether I include activation.jar in the classpath or not.
    I have tried to programmatically add the MIME types using the MailCommandMap class, but this had no effect.
    The most recent test I ran was to put the activation.jar and mail.jar files in my C:\Java\jre6\lib\endorsed directory. This actually cleared up the error. This is not a viable solution for us, but it leads me to believe the .mailcap file is not being loaded correctly for some reason. I just cannot figure out what the issue could be as it seems to be associated with JNI.
    Thank you for any help,
    Mary Kathryn

    Because JAF is now part of the JDK, the JAF classes are loaded by the system class loader
    instead of the application class loader. If the thread's context class loader is not set, JAF
    uses its class loader to load the mailcap files. Since JavaMail's mailcap file is in mail.jar,
    and mail.jar is still loaded by the application class loader, the system class loader can't
    find JavaMail's mailcap file.
    Normally, when starting the application using the "java" command, the thread's context
    class loader will be set to the application's class loader. This may not be happening
    automatically when starting the application with JNI.

  • "Unspecified Error" or "Runtime Error" 7 when launching application with AcroPDF on Secured Vista PC.

    We have a client application written in Visual Basic 6 that uses the AcroPDF ActiveX DLL to view PDF files in our app.  The app works fine the clients secured Windows XP SP 3 PC, and on my Windows Vista Business 32 bit Virtual Machine.  However, the application will not launch on the client's highly secured Vista Enterprise 32 bit PC's.  The form with the Acrobat Browser control does not even initialize before a "Runtime Error 7: Out of Memory" message is presented.  I created a VB 6 test app that has just the form and the Acrobat Browser control on it, and this test application will not initialize either.  It gets an "System Error &H80004005 (-2147467259). Unspecified Error" message on attempting to launch.  I get the same error message if I attempt to add the Acrobat Browser control to a form in an MS Excel Macro in Excel 2003 on the same PC.  Test VB6 applications using the other controls and references in the application launch fine.
    The Acrobat installed on these PC's is Acrobat Professional 9.0.0 and/or 9.1.0.  In two cases, we have been able to have the application load after uninstalling /reinstalling Acrobat 9.x on the PC, but ONLY for the profile that did the installation.  And in one case, after removing that user profile and then logging back on, that user started getting the same errors above.
    What policy or registry setting is needed to get this control to initialize on a secured Vista PC for all users?

    I have done the following on my Vista Business VM and I still have not been able to duplicate the error that I see at the client site.
    1.  Enabled UAC.
    2.  Implemented Software Restriction Policies.
    3.  Set the Default Security Level to Basic User (except for Local Administrators).
    4.  Lowered the Integrity Level on my AcroTest1.EXE and on my actual executable to "Low".
    The sample application and the user application loaded the form and initialized the AcroPDF control when logged in as a normal user account (the account is only a member of the "Users" group on the local Vista PC).
    Since this application is an actual Windows application (not an Internet Browser plug in), the default integrity level should be "Medium".

  • DNS error when launching Application login page after R12 installation

    Hi ,
    I installed R12.0.4 on windows server 2003.
    After installation when I launch the home page, its giving dns error saying that <domainname>.<hostname> cannot be loaded.
    I checked the apache alert log, it is trying to access an IP that is commented out in the host file. I am not sure where it is picking it up from. I installed loopback adapter before the installation and the entries in the host file also seem fine. Please help me out, this is the 2nd installation but the issue is still not resolved. Please let me know if you need anymore details.
    Thanks !

    Hi Dharmshila,
    Since you were not able to access the application URL using the IP Address then I believe it is an issue with the application/database services. To verify that all application services are up and running properly, please do the following:
    - Open a new DOS session
    - cd %INST_TOP%\apps\<SID>_<hostname>\admin\scripts
    - Issue "adopmnctl.sh status"
    - You should get something similar to the following:
    Checking status of OPMN managed processes...
    Processes in Instance: PROD_db2.db2.domain.com
    -------------------+--------------------+---------+---------
    ias-component      | process-type       |     pid | status
    -------------------+--------------------+---------+---------
    OC4J               | oafm               |    3800 | Alive
    OC4J               | forms              |    2528 | Alive
    OC4J               | oacore             |    3112 | Alive
    HTTP_Server        | HTTP_Server        |     172 | Alive
    exiting with status 0
    ERRORCODE = 0 ERRORCODE_ENDRegards,
    Hussein

  • NIPALU.dll entry point error message when launching application

    A previously working application (written in VB6.0, using Measurement Studio 6 and NI-IMAQ1394) now has a fatal error message when starting:
    "The procedure entry point _pkgModulePackageEventLog@20 could not be located in the dynamic link library NIPALU.dll".
    This fatal error is only observed on some of our customers' systems, others work fine after the upgrade. WE NEED URGENT HELP!
    Attachments:
    Error Message Screen Shot.png ‏8 KB

    MSOLAP$LocalCube cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted.
    Hello,
    It's just a guess: Power Pivot uses the MSOLAP = "Microsoft OleDB Provider for OLAP" and maybe that Provider is damaged on the machine. You may try to reinstall the Provider, you can get the installer named "SQL_AS_OLEDB.msi" from
    Microsoft® SQL Server® 2012 SP2 Feature Pack  =>
    ENU\x86\SQL_AS_OLEDB.msi (for 32 bit)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to secure application when launch application program?

    I'm making java application. and I want to know this procedure.
    1. program install. (when Internet connected)
    2. Only Computer has authorized MAC address can use program.
    I think it is similar to Photoshop license KEY. but it is different. Here is using MAC address.
    Do you have any idea?
    thanks in advance and have a nice day.

    ejp wrote:
    Do you realize this is all pointless, because the MAC address can be changed by the user?Not to mention NIC cards are among the first hardware components to go bad (at least at my work). Replacing/Adding a NIC card would also potentialy break the program if consideration is not taken for multiple NICs.
    Almost sounds like the OP should do what some games are doing and creating a key based on the hardware of the computer and allowing some tolerance should some hardware get replaced/removed. But that is beyond the scope of Java. And still subject to spoofing.

  • Error message 10660 when launching applications

    Hi,
    Hope someone may be able to help I have a MacBook Pro OS X 10.4.11 and Safari, Microsoft Office, Adobe & Skype are not loading. I have tried phoning Apple who advised trying a new user account, did that but the applications will still not load. I then tried first aid via disc utility on my HD but it came up with errors too. I have also tried reinstalling from the original discs and again errors have occurred. Any suggestions would be gratefully received.

    Does the error occur when trying to start the application or when you are trying to open a document? In the case of the latter be sure the document is trying to open the right application: Press COMMAND-I to open the Get Info window and check what default application is listed in the Open With section.
    If the above isn't relevant then do a Google search for 'error 10660' which will provide a number of links which may find a solution for you.

  • I3 freezes when launching ncmpcpp from dmenu

    It works great when I launch ncmpcpp from within a terminal (urxvt or xterm). But the whole system freezes when trying to launch it from dmenu. I'm forced to hit the power button on my desktop.
    When I power back on and inspect the i3 log file, there's nothing past the call to dmenu_run:
    08/13/2010 06:20:55 PM - Urgency flag changed to 0
    08/13/2010 06:21:01 PM - --- parsing command "exec /usr/bin/urxvt" ---
    08/13/2010 06:21:01 PM - starting "/usr/bin/urxvt"
    08/13/2010 06:21:02 PM - Managing window 0x00800007
    08/13/2010 06:21:02 PM - _NET_WM_NAME changed to "Terminal"
    08/13/2010 06:21:02 PM - WM_CLASS changed to urxvt (instance), URxvt (class)
    08/13/2010 06:21:02 PM - WM_CLASS changed to urxvt (instance), URxvt (class)
    08/13/2010 06:21:02 PM - _NET_WM_NAME changed to "Terminal"
    08/13/2010 06:21:12 PM - --- parsing command "exec /usr/bin/dmenu_run" ---
    08/13/2010 06:21:12 PM - starting "/usr/bin/dmenu_run"
    //... log ends here
    When I try and use dmenu, this time from openbox, ncmpcpp launches flawlessly.
    Let me know if you require more information
    Last edited by marfig (2010-08-13 19:05:21)

    marfig wrote:It's the freeze that bothers me though.
    IIRC, it will do that in any window manager when you try to run a[n] [N]CURSES program without a terminal.
    marfig wrote:[...] could you please at least have inserted a comment on AUR explaining the program?
    AUR description wrote:A simple Dmenu-based application launcher. Launches binaries and XDG shortcuts.
    AUR descriptions can only be so long and any comments there were wiped out by that database incident.  Sorry 'bout that.
    Anyway, it is a small shell script that uses Dmenu to launch applications either by binary name or XDG shortcut name (e.g., "writer" for OpenOffice Writer instead of $(soffice -writer)), and it can be told to launch applications in a terminal instead, which I figured would help you out.
    Last edited by Wintervenom (2010-08-14 02:39:57)

  • Always Use Artboard to Export  (CS5)

    In adobe Illustrator CS5 —
    Is there a way to always Use Artboards when exporting to JPG...etc? — instead of having to click the check box every time?
    Actions don't work because they save the path that was last used — I just want to simply be able to export all artboards, all the time.

    Asked around at work. One solution is to use File --> "Save for Web" as PNG-24 instead of using the "Export" function.

Maybe you are looking for

  • G/L Acc  Opening Balances.............

    Hi  ........   I am working on ECC 6.0 . I am developing a report which will fetch the opening balance for the starting date in given select options and closing balance for last date in given select options and need to show all the Dr , Cr  transacti

  • Mac Mini will not boot up at all

    Mac Mini 1.5Ghz Intel Solo, will not boot up now. It first froze when playing a song in iTunes. I shut down "the hard way." Now it can't make it past the gray boot screen. It's not even responding to any keyboard commands on boot. I can't get into Sa

  • XML Error [4]: parse error in all the IP Phones

    Hi All, While clicking on the Global Directory we are getting "XML Error [4]: Parse error " on the Cisco IP phone display,Global directory is pointed to the external server located in Same location .The issue started one week back . I have attached t

  • Unit of Issue  not considered in Excise Register Entries in Std SAP

    Dear Experts , I have a material Base UoM is KG i procured 100 KG the Unit of issue for the same is G(grams) now the consumption of 100 G was booked Excise registers shows the following entries : qty rcvd : 100 ( there is no unit ) qty issued :100 ba

  • I need to reinstall 10.1

    Is there anyway I can do this.