LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2014, 07:31 PM   #1
kramtoad
Member
 
Registered: Aug 2003
Posts: 38

Rep: Reputation: 15
making xv default image viewer


The XV image viewer does exactly what I need it to do except become the default image viewer. Since I compiled and installed it myself the system does not show it on any of the various graphics based methods of choosing it for the default viewer.

So, my question is: how to add a program Ubuntu (14.04) knows nothing about to the list of choices or what thouroughly hidden text file can I edit to change the default image viewer?

Thanks,

-Erik
 
Old 07-17-2014, 07:58 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
I think the most straight forward way would be to open your file manager (nautilus, thunar, or whatever) and right click any file you want associated, be that jpg, png etc. Then select "Open With", put in xv and then choose to "always open with this program" or similar.
 
Old 07-17-2014, 09:14 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
all desktops have a way to set the default program for a type of file

for images
r-click on the image
and from the properties window set the program to use to open it
-- this is also the SAME as on MS windows

also be aware that XV is very old
back in 1995 it was nice , but 19 years later ......
that rpm is for RH6 ( year 1999) and NOT RHEL6

Last edited by John VV; 07-17-2014 at 09:25 PM.
 
Old 07-19-2014, 03:42 PM   #4
kramtoad
Member
 
Registered: Aug 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Both those methods involve picking an application from a list that XV does not appear on and I see no way to add an application of my choice to that list.

Very frustrating!

-E
 
Old 07-19-2014, 04:43 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you should be able to "browse" to find the program

seeing as you built the source YOU know where you installed it

/usr
/usr/local
/????????????
 
Old 07-20-2014, 02:09 PM   #6
David.V
LQ Newbie
 
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by kramtoad View Post
Both those methods involve picking an application from a list that XV does not appear on and I see no way to add an application of my choice to that list.

Very frustrating!

-E
Open a terminal and type this command to see the path of the program

Code:
which xv
 
Old 07-21-2014, 06:27 PM   #7
kramtoad
Member
 
Registered: Aug 2003
Posts: 38

Original Poster
Rep: Reputation: 15
I guess I'm not doing a good job of explaining my problem so lets try a different route.

If I right click on an image a menu opens with a number of options the second of which is "open with". Mousing over that option opens a list of image viewing applications.

How does Ubuntu know what to put on that list? That list must be kept somewhere in some form. With luck I can just edit that list.

----

Yes, I know XV is old, I know where it lives on my system. There is no way to browse for applications that have not been installed in some officially approved Ubuntu way. I just need to know the back door way of getting XV on that damn list of applications. _There is no way I can see of doing it from begining by clicking on the image._


I really feel like I'm dealing with MS Windows here. ugh.
 
Old 07-21-2014, 09:49 PM   #8
David.V
LQ Newbie
 
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15

Rep: Reputation: Disabled
I found these two links that deal with applications not listed when right-clicking on file to open with.

How do I set the default file association in Ubuntu 13.10 Nautilus/Files with Unity to something that is not listed in the Open With tab?


Applications missing in “other applications list” - How to change default application?

If these don't do it, then do a google search on ubuntu file association mimetypes as there are many howto's out there. Good Luck

Last edited by David.V; 07-21-2014 at 10:02 PM.
 
Old 07-22-2014, 09:47 AM   #9
kramtoad
Member
 
Registered: Aug 2003
Posts: 38

Original Poster
Rep: Reputation: 15
Excellent! mimeopen -d did the trick!

Thanks much.

-Erik
 
Old 07-22-2014, 10:07 AM   #10
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Glad to see you got it working; as for this:
Quote:
How does Ubuntu know what to put on that list? That list must be kept somewhere in some form.
Depends on the application, but most will search for *.desktop files in either:
/usr/share/applications
~/.local/share/applications

I imagine if you create a *.desktop file under ~/.local/share/applications with the mimetype option set:
Code:
MimeType=image/jpg;image/png
Which should list the application when you "open with" for a right clicked jpeg or png file.
 
Old 07-22-2014, 01:24 PM   #11
David.V
LQ Newbie
 
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15

Rep: Reputation: Disabled
Quote:
Originally Posted by kramtoad View Post
Excellent! mimeopen -d did the trick!

Thanks much.

-Erik
You're Welcome!
I'm glad the link has helped your situation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best image viewer,djvu viewer pdf viewer cd/dvd writer for debian 7 rubankumars Debian 2 05-15-2013 08:23 AM
[SOLVED] How to change the default image viewer in Thunar. Arcosanti Slackware 2 08-26-2012 05:33 AM
How to change the default Image Viewer in Xfce avinash.rao Ubuntu 7 07-27-2009 06:11 AM
make irfanview default image viewer ebsbel Linux - Software 6 02-10-2008 12:34 PM
Making QXINE my default mpeg viewer in Firefox. Fogeytron Linux - Software 0 01-21-2005 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration