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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-17-2014, 07:31 PM
|
#1
|
Member
Registered: Aug 2003
Posts: 38
Rep:
|
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
|
|
|
07-17-2014, 07:58 PM
|
#2
|
Member
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
|
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.
|
|
|
07-17-2014, 09:14 PM
|
#3
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
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.
|
|
|
07-19-2014, 03:42 PM
|
#4
|
Member
Registered: Aug 2003
Posts: 38
Original Poster
Rep:
|
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
|
|
|
07-19-2014, 04:43 PM
|
#5
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
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
/????????????
|
|
|
07-20-2014, 02:09 PM
|
#6
|
LQ Newbie
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15
Rep: 
|
Quote:
Originally Posted by kramtoad
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
|
|
|
07-21-2014, 06:27 PM
|
#7
|
Member
Registered: Aug 2003
Posts: 38
Original Poster
Rep:
|
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.
|
|
|
07-22-2014, 09:47 AM
|
#9
|
Member
Registered: Aug 2003
Posts: 38
Original Poster
Rep:
|
Excellent! mimeopen -d did the trick!
Thanks much.
-Erik
|
|
|
07-22-2014, 10:07 AM
|
#10
|
Member
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
|
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.
|
|
|
07-22-2014, 01:24 PM
|
#11
|
LQ Newbie
Registered: Jul 2014
Location: USA
Distribution: Mint 17
Posts: 15
Rep: 
|
Quote:
Originally Posted by kramtoad
Excellent! mimeopen -d did the trick!
Thanks much.
-Erik
|
You're Welcome!
I'm glad the link has helped your situation. 
|
|
|
All times are GMT -5. The time now is 02:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|