4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.15k stars 128 forks source link

ST does not start properly #181

Open femifrak opened 2 years ago

femifrak commented 2 years ago

I just installed 1.0.16 via snap (xubuntu 20.04). When starting scantailor-advanced i get this output:

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8)
/snap/scantailor-advanced/2/snap/command-chain/desktop-launch: line 614: warning: setlocale: LC_ALL: cannot change locale (en_GB.utf8): No such file or directory
Qt: Session management error: Could not open network socket
QStackedWidget(0x55c69250acf0, name="qt_tabwidget_stackedwidget")  does not have a property named  "drawBase"
QWidget::setLayout: Attempting to set QLayout "" on QGroupBox "recentProjectsGroup", which already has a layout
QStackedWidget(0x55c692623470, name="qt_tabwidget_stackedwidget")  does not have a property named  "drawBase"

The window opens, I can also start "New Project", however, when trying to "Browse" to an input directory, nothing happens. Has someone a clue what I can do? Thanks, Femi

ppd commented 2 years ago

Please report snap related issues here: https://github.com/ppd/scantailor-advanced-snap

ppd commented 2 years ago

But in general with file dialogs an flatpaks/snaps: They most likely need a xdg-desktop-portal. You could probably install something like xdg-desktop-portal-gtk on XUbuntu.

femifrak commented 2 years ago

I don't know whether this is a snap issue. Installing xdg-desktop-portal-gtk helps a bit. The error on startup is the same, but now "Browse" allows to select a directory. However, when it is selected it shows something like: /run/user/1000/doc/1155773c/ instead of the selected one. Manual insertion of the directory helps, but projects cannot be saved.

derrikF commented 2 years ago

try AppImage https://github.com/probonopd/scantailor-advanced/releases

ppd commented 2 years ago

The portal doesn't really work for this workflow (yet). Please try "XDG_CURRENT_DESKTOP=KDE scantailor-advanced" You should see the normal Qt dialog again. I'm going to push a package with this change included. I've pushed a new revision including that change.