|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
Using nnn filemanager
In another thread:
Quote:
I would like to have it using ImageMagick as the default if possible, anyone know how to change that ?
__________________
My best friends are parrots |
|
|||
It uses xdg-open so it's likely that xdg-open is pointing to GIMP for images. You'll have to change it there.
|
|
||||
Thanks
__________________
My best friends are parrots |
|
|||
Quote:
Also: nnn does not use a config file. Instead it uses environmental variables from ~/.profile for example: export NNN_SCRIPT="$HOME/.scripts/myScript or for bookmarks: export NNN_BMS="h:~;d:~/Documents;D:~/Downloads;w:~/Work;W:~/Work/.prn" In nnn if you press "?" it will print out list of all hotkeys and stuff. (press "q" to go back to file browser) ImageMagick? Try feh (feh-2.27.tgz)! |
|
||||
Ok, thanks,
Quote:
'man xdg-open', which also suggested 'xdg-settings' and the xdg-setttings even had some examples, but only for : Quote:
I noticed with the key board shortcuts, or hotkeys, Quote:
Code:
^O | Open with...
__________________
My best friends are parrots |
|
|||
Check default app:
xdg-mime query default image/png Set feh as default app: xdg-mime default feh.desktop image/png xdg-mime default feh.desktop image/jpg xdg-mime default feh.desktop image/bmp for ImageMagick it should be something like display-im6.desktop |
|
||||
Thanks, That works, now it is using "feh" to open the images. If I want to use ImageMagick, I need to look into that more, but it probably will be easier to simpl use the 'display' command, when I want to open a image with ImageMagick,.. Thanks
__________________
My best friends are parrots |
|
|||
You're welcome. ImageMagick is actually a set of tools, and it's tool for displaying images is display, however it's *.desktop name is different (something like display-im6.desktop).
|
|
|||
In Linux there is display-im6.desktop, but in OpenBSD you need to create one.
as root: cd /usr/local/share/applications/ cp feh.desktop display-im6.desktop then edit display-im6.desktop, replacing feh: [Desktop Entry] Name=ImageMagick GenericName=Image viewer Comment=Display and edit image files Exec=display %U Terminal=false Type=Application Icon=display-im6 Categories=Graphics; MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-pcx;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-tga;image/x-xbitmap; then: chown root:bin display-im6.desktop as regular user: xdg-mime default display-im6.desktop image/png xdg-mime default display-im6.desktop image/jpg xdg-mime default display-im6.desktop image/bmp etc. for other mime types you need to be opened in ImageMagick |
|
||||
Thanks, Yes, that was the conclusion I came to as well, I had searched and searched, and did not find one, so was figuring I would need to create one, but had not begun to try that.
__________________
My best friends are parrots |
Thread Tools | |
Display Modes | |
|
|