Problem with 'open with'
Moderators: helmut, XnTriq, xnview
Problem with 'open with'
xnview_mp 1.4.0 appimage on opensuse leap 15.4 (current)
I have some files in xnview_mp that I'd like to edit in darktable. I have set:
right-click > open with > configure program > add > /usr/bin/darktable
and then when press 'alt-1' or 'open with' nothing happens.
What am I missing or doing wrong?
Thanks
I have some files in xnview_mp that I'd like to edit in darktable. I have set:
right-click > open with > configure program > add > /usr/bin/darktable
and then when press 'alt-1' or 'open with' nothing happens.
What am I missing or doing wrong?
Thanks
Re: Problem with 'open with'
Hello,
maybe there is a rights problem with the appimage, because the app is only installed for the user. Remedy can bring a full installation of the .deb.
maybe there is a rights problem with the appimage, because the app is only installed for the user. Remedy can bring a full installation of the .deb.
martin
Re: Problem with 'open with'
I did check. It's not a matter of appimage because exactly the same problem happens with the TGZ.Redwine wrote: Fri Dec 23, 2022 1:22 pm Hello,
maybe there is a rights problem with the appimage, because the app is only installed for the user. Remedy can bring a full installation of the .deb.
It's either a bug or I'm doing something wrong.
Re: Problem with 'open with'
i am not familiar with opensuse. In linux-mint, besides the official application management, there is also the possibility to install apps via flatpak. The flatpak are started from xnviewmp via script file.
i use e.g. gimp as flatpak. If you want to access gimp from xnviewmp, the script file looks like this: /usr/bin/flatpak run org.gimp.GIMP "$1".
This executable file is in my home. I access this file from xnviewmp.
Is your darktable maybe also installed via something like flatpak?
i use e.g. gimp as flatpak. If you want to access gimp from xnviewmp, the script file looks like this: /usr/bin/flatpak run org.gimp.GIMP "$1".
This executable file is in my home. I access this file from xnviewmp.
Is your darktable maybe also installed via something like flatpak?
martin
Re: Problem with 'open with'
Nothing. Here's the terminal output AFTER selecting the image + open with darktable
The image is: /run/media/froggy/drv-3tb/photos/@work/stores/keys-20121016-5995.cr2
Code: Select all
$ ./xnview.sh
MDK 0.15.0 (git e8c668a) - Multimedia Development Kit. Copyright (c) 2016-2022 WangBin(QtAV author) <wbsecg1 at gmail.com>
Build for: Linux x86_64; Clang14.0.6 GCC4.2.1; libc++14000; 15:26:29 Aug 23 2022
No protocol specified
No protocol specified
No protocol specified
==> 1.000000 1.000000 81.807723 96.023634 (0)
XNVIEW restoreGeometry before : 640 480
XNVIEW restoreGeometry after : 2558 1018
w.init
XNVIEW SIZE 2558 1018
########### BrowserWindow :: BrowserWindow
libpng warning: iCCP: known incorrect sRGB profile
MENU install : 0x3758f30
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
ThumbLoaderThread :: stop()
libpng warning: iCCP: known incorrect sRGB profile
QWidget::setMinimumSize: (favoriteD/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (categoryD/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (prevD/QDockWidget) Negative sizes (0,-1) are not possible
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 255, 255, 255, 178'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
########### BrowserWindow :: ok create (640 480)
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
BrowserWindow :: changeVisibility()
########### BrowserWindow :: restoreState (2558 1018)
ThumbLoaderThread :: stop()
BrowserWindow :: restoreState => 2558 1018
=> 1883 924
BrowserWindow :: restoreState ok => 1883 924
XNVIEW SIZE ok 2558 1018
QWidget::setMinimumSize: (favoriteD/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (categoryD/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (prevD/QDockWidget) Negative sizes (0,-1) are not possible
w.start
### BrowserWindow :: onStart go
#### onCategoryDockVisible (1)
########### BrowserWindow :: restoreState (2558 985)
ThumbLoaderThread :: stop()
BrowserWindow :: restoreState => 2558 985
=> 1297 891
QWidget::setMinimumSize: (favoriteD/QDockWidget) Negative sizes (0,-1) are not possible
QWidget::setMinimumSize: (categoryD/QDockWidget) Negative sizes (0,-1) are not possible
BrowserWindow :: restoreState ok => 967 891
### BrowserWindow :: onStart
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
BrowserWindow :: onStart 2
### BrowserWindow :: finish
Create children /run/media/froggy/drv-3tb/
Create children /run/media/froggy/drv-3tb/photos/
Create children /run/media/froggy/drv-3tb/photos/@work/
###### CHECK CHILDRENS 36
==> 1 (lost+found) -> 1 (lost+found)
==> 0 (case-tractor) -> 16 (work-2022)
dataChanged2 ==> 6 (gimps) -> 14 (skies)
###### CHECK CHILDRENS ok (186)
## UPDATE ==> (stores)
setPathname </run/media/froggy/drv-3tb/photos/@work/stores/>
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(0)
### ThumbLoaderThread :: setFileList() wait
######ThumbLoaderThread :: run : 3836c70
######ThumbLoaderThread :: forever : 3836c70
** start condition wait
### ThumbLoaderThread :: setFileList() after wait
ThumbLoaderThread :: stop()
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
## OPEN FOLDER
######ThumbLoaderThread :: forever 2 : 3836c70
CHECK <0>
######ThumbLoaderThread :: forever : 3836c70
** start condition wait
## Check folder
## Check companion 0
## Check companion ok 0
## OPEN DB FOLDER ok 0
## UPDATE DB FOLDER ok 8
## OPEN FOLDER ok 8
## updateLabel 8
## updateLabels ok 9
ThumbLoaderThread :: stop()
SORT the list...
STD::SORT... 0
STL::SORT... 0
SORT the list... 0
SORT the list... 0
BitmapLoadThread :: stop()
## OPEN FOLDER done 12
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: setFileList(12)
ThumbLoaderThread :: stop()
** start condition wake one 2
### ThumbLoaderThread :: setFileList ok
######ThumbLoaderThread :: forever 2 : 3836c70
CHECK <12>
### START 12
######ThumbLoaderThread :: start : 12 -1 -1
sizeHints : 439
sizeHints : 439
######ThumbLoaderThread :: forever : 3836c70
** start condition wait
SORT the list...
STD::SORT... 0
STL::SORT... 0
SORT the list... 0
SORT the list... 0
### ThumbLoaderThread :: updateFileList
ThumbLoaderThread :: stop()
### ThumbLoaderThread :: updateFileList ok
sizeHints : 439
### ThumbLoaderThread :: setFirstItemToLoad
** start condition wake one 3
### ThumbLoaderThread :: setFirstItemToLoad ok
######ThumbLoaderThread :: forever 2 : 3836c70
CHECK <0>
######ThumbLoaderThread :: forever : 3836c70
** start condition wait
######### CategoryModel :: checkAndSave()
LOAD INFO </run/media/froggy/drv-3tb/photos/@work/stores/keys-20121016-5995.cr2>
=> 1 100: 3 1
=> 1 101: 3 1
=> 1 102: 3 3
=> 1 103: 3 1
=> 1 10f: 2 6
=> 1 110: 2 13
=> 1 111: 4 1
=> 1 112: 3 1
=> 1 117: 4 1
=> 1 11a: 5 1
=> 1 11b: 5 1
=> 1 128: 3 1
=> 1 132: 2 20
=> 1 13b: 2 10
=> 1 2bc: 1 8192
=> 1 8298: 2 35
=> 1 8769: 4 1
=> 0 829a: 5 1
=> 0 829d: 5 1
=> 0 8822: 3 1
=> 0 8827: 3 1
=> 0 8830: 3 1
=> 0 8832: 4 1
=> 0 9000: 7 4
=> 0 9003: 2 20
=> 0 9004: 2 20
=> 0 9101: 7 4
=> 0 9201: a 1
=> 0 9202: 5 1
=> 0 9204: a 1
=> 0 9207: 3 1
=> 0 9209: 3 1
=> 0 920a: 5 1
=> 0 927c: 7 45494
=> 0 9286: 7 264
=> 0 9290: 2 3
=> 0 9291: 2 3
=> 0 9292: 2 3
=> 0 a000: 7 4
=> 0 a001: 3 1
=> 0 a002: 3 1
=> 0 a003: 3 1
=> 0 a005: 4 1
=> 0 40001: 2 4
=> 0 40002: 7 4
=> 0 a20e: 5 1
=> 0 a20f: 5 1
=> 0 a210: 3 1
=> 0 a401: 3 1
=> 0 a402: 3 1
=> 0 a403: 3 1
=> 0 a406: 3 1
=> 0 a430: 2 1
=> 0 a431: 2 11
=> 0 a432: 5 4
=> 0 a434: 2 25
=> 1 8825: 4 1
=> 0 50000: 1 4
=> 2 201: 4 1
=> 2 202: 4 1
=> 3 100: 3 1
=> 3 101: 3 1
=> 3 102: 3 3
=> 3 103: 3 1
=> 3 106: 3 1
=> 3 111: 4 1
=> 3 115: 3 1
=> 3 116: 3 1
=> 3 117: 4 1
=> 3 11c: 3 1
=> 3 c5d9: 4 1
=> 3 c6c5: 4 1
=> 3 c6dc: 4 4
=> 4 103: 3 1
=> 4 111: 4 1
=> 4 117: 4 1
=> 4 c5d8: 4 1
=> 4 c5e0: 4 1
=> 4 c640: 3 3
=> 4 c6c5: 4 1
LOAD INFO </run/media/froggy/drv-3tb/photos/@work/stores/keys-20121016-5995.cr2> ok
############################################ InfoPropertiesView
Create Tree : File
Create Tree : Image
Create Tree : Camera
######### CategoryModel :: checkAndSave()
### checkChanged : 0
######### CategoryModel :: checkAndSave()
/usr/bin/ART: symbol lookup error: /usr/lib64/libssh.so.4: undefined symbol: EVP_KDF_CTX_new_id, version OPENSSL_1_1_1d
Re: Problem with 'open with'
No. For darktable I do not use appimage nor flatpak. It's the straight install.Redwine wrote: Sat Dec 24, 2022 3:22 pm your darktable maybe also installed via something like flatpak?
Execute from a shell script
XnviewMP is able to execute shell scripts.
Create a blank file and name it 'darktable.sh' with this code.
Place it somewhere, and then add it to the 'Open with' list. If you select the name you can also change the label.
If it still does not launch you may need to explicitly specify a darktablerc or tell it where the datadir is. Read the man page.
Create a blank file and name it 'darktable.sh' with this code.
Code: Select all
#!/usr/bin/env sh
file="$1"
darktable=$(command -v darktable)
$darktable \
"$file"
If it still does not launch you may need to explicitly specify a darktablerc or tell it where the datadir is. Read the man page.
Re: Execute from a shell script
1. As a script from the command line in terminal, it works.Neuro-NX wrote: Sun Dec 25, 2022 1:34 am XnviewMP is able to execute shell scripts.
Create a blank file and name it 'darktable.sh' with this code.Place it somewhere, and then add it to the 'Open with' list. If you select the name you can also change the label.Code: Select all
#!/usr/bin/env sh file="$1" darktable=$(command -v darktable) $darktable \ "$file"
If it still does not launch you may need to explicitly specify a darktablerc or tell it where the datadir is. Read the man page.
2. From xnviewmp, darktable doesn't even start.
You can try by creating a script that just display any text and nothing will happen.
Either, it's a general bug in xnviewmp or it's a bug in the xnviewmp linux.
Code: Select all
$ inxi -S
System: Host: dodoite Kernel: 5.14.21-150400.24.38-default x86_64 bits: 64
Desktop: Xfce 4.16.0 Distro: openSUSE Leap 15.4
Re: Problem with 'open with'
..... i don't think it's a bug in xnviewmp or in the linux version.
On linux-mint i start darktable from xnviewmp without problems.
On linux-mint i start darktable from xnviewmp without problems.
- Attachments
-
- xnviewmp.jpg (71.33 KiB) Viewed 1468 times
martin
Re: Problem with 'open with'
Thank you it was very useful.Redwine wrote: Sun Dec 25, 2022 8:23 pm ..... i don't think it's a bug in xnviewmp or in the linux version.
On linux-mint i start darktable from xnviewmp without problems.
I was able to track down the problem. The problem is the xnview_mp passing the parameters to darktable via SSH/openSSL _1_1_1d.
On Opensuse, the openssl does not have: EVP_KDF_CTX_new_id, so darktable or anything else cannot start from within xnview_mp on the opensuse leap 15.4 platform.