Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 1
    Thank you for your answer. I followed your steps and created all the according scripts, links and files. Your solution works great form the command line and performs as advertised. But when I try to set the script (or rather the symbolic link) as the default application to open a specific file type, it fails and falls back to the secondary default. I don't know, if I am doing something wrong. Commented Oct 5, 2012 at 4:24
  • Here's how I defined the script as the default app: 1.) create a launcher (co.desktop) with Exec=/home/user/.scripts/Customization/Defaultapps/custom-open-text in ~/.local/share/applications. 2.) Edit ./local/share/applications/mimeapps.list and add the following default association: text/plain=co.desktop. Find any mistakes in this procedure? Commented Oct 5, 2012 at 4:26
  • 1
    ok try out the new version, I made some enhancements to make it easier to use. I've also added the graphical error handler so now it should popup an alert with the error message. Try again and post the error message in a comment if it still doesn't work. Also could you mention what version of Ubuntu and which desktop environment you tried out. Commented Oct 5, 2012 at 17:05
  • It works and it does so fantastically (using LXDE/Unity)! Your solution deserves every single last point of this bounty. Thank you very much for taking the time to do this. (P.S.: I still think a function like this should come with Ubuntu by default. DE-hopping might not be popular practice but it's common enough to warrant an official solution.) Commented Oct 5, 2012 at 17:15
  • 1
    I am sorry, but I am not the OP, I merely set the bounty up. @Olive Twist will have to mark his own question as answered. Commented Oct 6, 2012 at 3:50