General :: Executing The Default Application Assigned To A File Type?
Dec 10, 2010
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)
View 3 Replies
ADVERTISEMENT
Nov 3, 2010
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.
View 1 Replies
View Related
Jun 2, 2010
I have some .loc files from geocaching's website. I wrote a special script that takes these files and converts them to my Bushnell GPS format and moves them into the correct folder. Now I'd like to associate a double click with my script. However, the .loc file shows up as "XML Document". yes, it's an XML document, but I only want .loc XML documents to be executed by my script. How can I give .loc files their own "type" so I can give them their own "Open With" application and not mess up every other xml file?
View 2 Replies
View Related
Jul 20, 2010
I have installed Gantt Project (project management application) under 10.04. The system identifies the .gan files produced by the program as xml files. How do I tell the system to open .gan files with the GanttProject application?
I tried right click on the file to open and using "Open with other application" but the GanttProject application does not appear to be in the list of available programs.
View 1 Replies
View Related
Jan 7, 2011
I would like to get the predefined application icon to open the same file types.
for instance: *.avi, *.mp3 to have the VLC icon
and other application to have the icon of their default application.
So far I only found tips to install single icons or to add icon packs. :S
and is there any way to when you install an application make it default for such file types ?
View 1 Replies
View Related
Jun 17, 2010
I currently using Lucid and I can't connect to the internet in lucid.
View 2 Replies
View Related
Oct 23, 2010
In Firefox, when I try to download a PDF document from a particular website, I get the message, "Unable to open document. File type unknown (application/octet-stream is not supported.)" Yet the same PDF document loads fine in Konquerer. Am I missing a plug-in or something?
I am running Ubuntu 10.04 LTS (Lucid Lynx) and Firefox 3.6.11, which has an entry for PDF document under Edit �> Preferences on the Applications tab that says, "Use MozPlugger 1.13.3...".
View 1 Replies
View Related
Jul 3, 2010
How do i type in an address into Nautilus (default file-browser in Gnome DE)? By default it shows me the folders as buttons instead of a typable url-type space, how do i change it to a white space i can key-into?
View 13 Replies
View Related
May 24, 2011
I am copying the file form one directory to another directory using shellscript.
Here i want to get the Mimetype/Content-type of the file.
How to i can get the MimeType.
View 9 Replies
View Related
Feb 8, 2010
I'm having some really odd problems with Nautilus. The main one is that most of the time, files of various types are not assigned to be opened with the proper app, and I cannot assign an app. I described this problem in another thread: If I right click a .pdf for example, and select "Open With," the first two suggestions (Leafpad and gedit) are wrong. If I choose instead "Open with another program," I get a dialog with two tabs. One is "Recommended Applications" and is blank. The other is "All Applications." If I click "All Applications," instead of getting a list of apps or having the opportunity to choose one from /usr/bin, the entire dialog disappears abruptly. I'd say that's a "crash."
[code]...
View 9 Replies
View Related
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
My configuration is the following:
- 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
- gnome desktop
View 3 Replies
View Related
Jul 25, 2011
I am trying to change the default open with application of a .mpg file but when I click on properties it shows me this.. how can I fix it.
View 5 Replies
View Related
Feb 8, 2010
We are trying to define an appliance for an application server so I would like to know which should be the best file system type for this kind of use, basically our web applications uses libraries of 50 KB and our web apps.creates temp and logs files not bigger than 3 MB.
View 1 Replies
View Related
Jan 14, 2010
My present working is
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/demo/c++ #
Now I want to run "python scons/scons.py" located in
Code:
linux:/home/anisha/downloads/mapnik-0.6.1/ #
I tried
Code:
../../python scons/scons.py
From the above stated PWD but it resulted in the following:
Code:
bash: ../../python: No such file or directory
What is the way to execute a file of some other directory from the PWD!
View 14 Replies
View Related
Jul 15, 2010
Code:
#!/usr/bin/awk -f
BEGIN{ FS=":"}
{
"groups "$1 | getline grps
[code]....
View 5 Replies
View Related
Nov 2, 2010
I have an application, probably cpu-intensive because sometimes it leaves the cpu with 0% idle (in top). Sometimes it hangs ("Done" does not print) when executing this part, but most of the time it executes just fine. Is there any wrong with this code?
View 2 Replies
View Related
Dec 21, 2010
i have recently started a bit of sh coding. i was trying out sm commands from an sh file.
#!/bin/bash
txt1="top > temp.txt"
eval $txt1
[code]....
View 14 Replies
View Related
Jun 29, 2011
I'm using Ubuntu and I'm programing with eclipse CDT. My goal is to execute a php file and read the output to my c++ program. To do so I thought I should use fork(), dup2() and execl. When in shell, the call "php myscript.php" worked just fine, but when in c++ I tried:
execl("usr/bin/php", "php", "home/geiger/workspace/SemiServer/server_content/myscript.php", NULL);
And it didn't work (the process wasn't terminated and I got no output). I tried different version of this call, like losing the "php" string and/or drop "home/geiger" from the path string, to no better result.
View 1 Replies
View Related
Mar 2, 2010
Binary files need only execute permission to execute. No read permission is required. But all executable files must be read by the kernel into main memory before executing. Also script files need both read and execute permissions for executing the file.
View 5 Replies
View Related
Apr 21, 2010
I am wondering why running this file:
Code:
-rwxrwxrwx 1 root root 1247 2010-04-21 18:25 autorun.sh
by issueing this command:
Code:
./autorun.sh
results in this message:
Code:
-bash: ./autorun.sh: Permission denied
I'm logged in as root and prior to the above I did a chown root:root on the file.
View 3 Replies
View Related
Jun 22, 2010
I'm running Redhat 5 Enterprise (Nautilus 2.16.2) with Gnome and am having trouble changing the default application for PDFs. No matter what I do, it seems to always come up as evince.
First I tried browsing to a PDF file using Nautilus, right clicking on a PDF file, selecting properties, open with, and then changing the radio button. However, the radio button is selecting "Document Viewer" and clicking on the other buttons doesn't do anything. The button is stuck on "Document Viewer" (I'd like to use Adobe Acrobat).
I thought I'd do it manually then. Running `gnomevfs-info file.pdf" shows code...
So now xdg-mime and gnomevfs-info are showing different default applications for this file type. I've tried updating the mime database using update-mime-database ~/.local/share/mime as well as updating my desktop database using update-desktop-database ~/.local/share but nothing seems to be working.
Changing a default application really shouldn't be this difficult. What should I try next to change my default application?
, however, shows something different
My .local/share/applications/defaults.list file, however, shows the following:
application/pdf=AdobeReader.desktop
View 1 Replies
View Related
May 2, 2010
I am looking for a clue in shell or ant script, where I excecute a binay file on linux. For example ./myfile.bin which ask me few questions.
./myfile.bin ...........................100%
I would like to automate this process where I want to pass the hostname as a variable or read from a file is it possible? If yes any sample`s on this. I can do if this was a shell script ($1) but not sure when its binary.
View 8 Replies
View Related
Feb 4, 2011
In my system around 73gb(pc-desktop) i have,1 primary partition(windows)-25gb, 1-extended partition(remaining gb) 3 logical partitions were there in (under) extended partition in one of the logical partition is d:drive. in my hard disk d: drive is -/dev/sda5
previosly i was fat -file system , (d:drive-/dev/sda5), i remember i changed the d: drive(d:drive-/dev/sda5) file system to ext4file system ,with following command using terminal
After doing(changing the file system)this one ,i couldnt see the d:drive data
By doing that
1q) Did i reformatted the partition? i think the new filesystem(ext4) has no knowledge of the data that was on it when it had a FAT filesystem.
2q) How to do undo operation,i tried to change the filesystem type to fat/ntfs in terminal using command --sudo mkfs -t FAT /dev/sda5.
Result:its showing text message-'mkfs.FAT: No such file or directory'(not in single quote)
I had very imp data in d:drive
View 1 Replies
View Related
Apr 5, 2011
I want to tweak my linux environment so that when I type a text file name on the command line and hit enter the file should be opened in Vim.
$: /tmp/file.txt
should open the file in Vim. This is similar to what happens on windows (where a text file is opened in notepad.)
View 6 Replies
View Related
Jun 30, 2011
I want to change the application that opens my mp3 files.
At present if I double click an mp3 it opens in the movie viewer for some reason. I know I can use "open with..." to get a file to open in Rythymbox instead, but I have over 800 mp3 files and want to change the default for all of them.
View 1 Replies
View Related
Sep 26, 2010
I have stood it for a long time. Have anyone changed it successfully ? Please tell me and all the friends viewed this thread.I often download login window theme package from http://art.gnome.org/themes/gdm_greeter , the file type is .tar.bz2 , but I don't know how to install it.
View 3 Replies
View Related
Jun 15, 2010
In my .vimrc file I have this line..filetype plugin indent on and then in ~/.vim/ftplugin/py.vimrc (I've also tried saving it as a .vim file) I've copied and pasted a vimrc file for python standards and have enabled all of the suggested settings in it (uncommented them). When I create and open a test.py file and do something like a tab, it goes 8 spaces instead of 4.
View 3 Replies
View Related
Oct 12, 2010
I am witing a file upload program in perl where i need to upload a wav or a gsm file and save it as a gsm file.How can i make sure that the uploaded file is a wav or a gsm sound file and not an executable malicious script or something.
View 2 Replies
View Related
Jan 25, 2011
how can I define file type for wget to download . for example I do not want to download *.html or I just want to download *.jpg files . or if it does not support any of them do you know any other suggestion ?
View 1 Replies
View Related
Apr 7, 2011
i have some php file and i store it inside /var/www/html/and to display it i type Quote:http://ip addrs/file.phpto display the details..and the problem is that i want the php file to be display when i type the ip address only like thisQuote:
View 3 Replies
View Related