Debian :: Set Default Application For Specific File Extensions
Dec 17, 2015
How to properly set some entries in:
$HOME/.config/mimeapps.list
so that:
*.odb files are opened by default with libreoffice base
*.org files (just org files not plain text files) are opened by default with emacs
For some reason I can not figure out how to proceed.
As far as I know - i.e. for what I have been reading in the documentation - the default application for a given MIME-type is specified by writing into the group [Default Applications] in the mimeapps.list file
I have this problem, that I want a specific .exe file to open in Mono, but all other .exe files to open in Wine.
However, the only option there is, are 'Select an application to open XXXX.exe and other files of type "DOS/Windows executable"'
but I just want to open THIS .exe file in mono, and the rest in WINE.
I have been in similar situations before, in that I opened a folder containing music with VLC, and it worked fine, but after that, it assumed that I wanted to open all folders in VLC.
I assume that there must be an option for this, and I can not see why it ain't an option by default.
I want to remap my keys for a game I'm playing, for example WASD instead of arrows to walk, r, f, c to act like f1, f2, f3 and so on. I'm aware of xmodmap, but I want to do this just for one application and be able to use hotkey to toggle between this script and default setting. I've been trying to use AutoKey, but I cannot force it to work just for specific app. On windows solution is AutoHotKey, but it won't work through wine.
app deployment on Linux/debian and I'm using Debreate to create .deb packages which works fine. I install the software itself to /usr/bin but want to install the program's database to /home/username/myapp/ The problem is it that I don't know how to add the env variable 'username' to the target path. What is the exact syntax for this installation path?
Using gnome terminal (Ubuntu 10.10), is there a way to execute the default application associated to a file type, only by typing its name, as it is possible with Windows ?
For example, say I create a mime type associated to every file with the pattern *.abc. Lets say I associate this file type to application 'my_app'.
If I have file 'my_file.abc' in current folder, what I want is that when I enter only 'my_file.abc' at the prompt, it executes 'my_app' feeding it with 'my_file.abc' as first argument. (assuming of course 'my_app' is in the path)
I know this is possible in GUI gnome. But is it possible to do it too in shell command? Let say if i type this in shell:
#file.txt
then it will open gnome-editor in nautilus which open file.txt. gnome is the desktop manager. nautilus is the explorer windows in gnome. gnome-editor is one like notepad in MS windows.
I'm trying to get Nautilus to open avi files with VLC instead of Totem. This succeeded for two of the three computers I have Debian on, but not on my EeePC. I right click the file, click "Open with other application", select VLC, and check that the "always use this application" option is checked (it always is). Then I click OK and it opens the file with VLC. But it doesn't remember the change; if I try opening any avi file again, it'll go back to Totem.
i cannot seem to find a proper way to make Java my default application to open .jar files. I just made a new Debian 8.3 install on my laptop HP Pavilion G6 and the default application for opening .jar files is the Archive Manager. But when i go to "Open with.." section on right-clicking the .jar file, i get no JRE or JDK option to choose. I just installed the openjdk 7. I can manually run them from the bash, but it would be much more convenient if i just double-clicked it. Here is what i get when i run several commands in the bash :
1) which java ->Code: Select all /usr/lib/jvm/java-7-openjdk-amd64/bin/java 2) java -version -> Code: Select alljava version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb8u1) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) 3) echo $PATH: Code: Select all/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin: /usr/local/ sbin:/usr/local/bin:/ usr/ sbin:/usr/bin:/ sbin:/bin 4) javac -version : Code: Select alljavac 1.7.0_95
I have a directory of a load of files without extensions. I know what the filetype should be, so is there any way of batch renaming the files to append a given extension onto it. i.e. text would be renamed as text.txt?
I'm using Ubuntu 10.04.1 LTS (Netbook).I need to associate ram file extension to realplayer. First time I opened a ram file I choosed the default player, Reproductor de peliculas (I think Movie player in english).Now when I choose Open with Realplayer and remember the application for this extension it opens the archive but it does not remember for the next times. It seems to be a little bug. How can I do it manually? Where is the association config file for file extensions?
I'm developing with puppet, and I need to do an aptitude update from a specific file, here is my configuration: The file sources.list in /etc/apt/ is deleted. I've created 3 files in /etc/apt/sources.list.d each one with their repos:
00-debian_sources.list deb http://ftp.fr.debian.org/debian/ lenny main contrib non-free deb-src http://ftp.fr.debian.org/debian/ lenny main contrib non-free
[code]....
All the repos are updated/refreshed , and I only want to refresh/update the specific repos insie of the file 01-debian_security_updates.list. On the other hand if I put some repos in the sources.list and delete the 3 files and I create an external file for example in /tmp/temprepo and I do the command aptitude update -o dir::etc::sourcelist=/tmp/temprepo it works fine.give some workaround to update and then upgrade packages from the files specified in my config.
How do I get vlc to start at a specific time in a media file. I can do it easily in mplayer2, mpv but not vlc. Let's say the media file is named abc.avi (file format,container not important for this example.) Also the running time is around 2+ hrs. In mplayer2 and mpv I can simply do :-
Trouble is that ROBOTNAME is different in each of the hundred and fifty files. To make it harder, there are other gif filenames on these pages that I do not want to change. I only want the extensions to change if the address prefix is 'images/robopix/web/'. Is there any way to do this with a quick program/sed command rather than manually editing a hundred and fifty files?
GNU/Linux kernel 2.6, Slackware. VIM - Vi IMproved 7.1 Huge version without GUI. When I quit an editing sesion vim creates a backup file with the same name as that of the edited file but with a '~' appended. I would like the name for the backup file to be the following: same base name as that of the edited file and edited file extension replaced by 'bak'. Example:
Input file//////////////backup file after editing ----------//////////////------------------------- foo.txt/////////////////foo.txt~ foo.txt/////////////////foo.bak
The first line corresponds to what vim now does. The second one is what I want vim to do.
I want to know, how to allow to a specific user to run an application (for example Virtual Machine Manager) without entering a password? I have tried to add this user into appropriate groups, but it didn't helped.
how can you set specific application's data to always reside in ram, so it runs and launches super fast all the time?
i recall reading about how you could put all your libs folders into ramfs once, but it took up a lot of ram, so i never bothered, and it was really just for faster (instant) launching times.
i just want to be able to set that for specific things, like for example, the GIMP and Inkscape.
i was just wondering if anybody knows of a command that i can run in the terminal to HIDE file extensions.I would apretiate this command and i dont mind if it is for ubuntu or windows.
I want to rename some image file extensions from upper case to lower case but renaming all the images in all directories and subdirectories. the following code works if I am inside the folder but how do I make it work recursively?
Code: for f in *.JPG; do mv $f `basename $f .JPG`.jpg; done;
I have two sound cards in my computer. OpenSuSE 11.3 recognizes them both without a problem, and I can play sound through each of them. Is it possible to set one application to use one sound card simultaneously with another sound card routing to a different application? That would be sweet. For example, I have my surround speakers plugged into one sound card, so I can provide music for the whole room, and have my PC speakers next to the monitor playing a movie.
I am using ubuntu 10.04 and opensuse 11.3. I would like to know how to assign each application to a specific worksapce. For example,when I open a pdf file, it will be moved to workspace2. When I open a movie, it will be moved to workspace3. In Leopard, "Space" have such features. I would like to know the way to achieve this in ubuntu and opensuse, in an easy way, meaning that just need to install a small package, not a big one , like compiz
I just changed my windows to Ubuntu. Now I need to install software for my SLR camera, I tried to do an search on but end in vain. How can i use the sony software on my system.
I have a need to run a specific app as a specific user when the machine boots into init 3. I can not run this as root so I need to specify a user. Can someone tell me how to accomplish this?I usually have to log in and start this application by typing check -D which starts this app and daemonizes it. I want to be able to run that at boot with my normal user not root.I hope I explained this correctly.I have added it to rc.local but it runs as root.
Does anyone know of a way to perform a search for multiple file extensions at once in Gnome? I know that M$ Windows Explorer had this capability, but I'm just not sure how to do it in Gnome, or if it's possible. I just want to be able to perform searches for Video, Music, and Document file types, without having to perform a separate search for each file extension. Example: When doing a search for Video file types (.avi,.mp4,.mov,.wma, etc.), I would like to do one search for all files that have these file extensions, instead of doing one search for .avi files, a second search for .mp4 files, another for .mov files, etc.
Basically, I have a selection of .rdp shortcuts to various machines, but they are considered the file type "plain text document (text/plain)" so if I change it to open with to tsclient, all of that file type opens with tsclient. And if I change it to gedit, all the rdp files open with gedit. Is there a way to create a custom file type dependent on the extension rdp, or is there a way to set tsclient to open by extension rather than filetype?
I am doing a migration and where i face problem with few file formats . I have the list of acceptable file formats , now i need to find the rest of the file formats other than the acceptable file formats. is there any tool available for this ? or can some give me the VBA macro .. My VBA macro works to find the file extension in a particular folder but the problem is its ending when the count increases to 65000 (excel limit). How do i use If condition here to avoid the acceptable format and give me unique file formats .
Just recently installed the latest Ubuntu on my laptop and working perfectly. I have installed and configured LAMP but unable to figure out how to hide php and html file extensions when visiting a URL. I have enabled mod_rewrite via sudo a2enmod rewrite. Can this be accomplished globally rather than using a htaccess file?