Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not save file to computer #228

Closed
tjapro opened this issue Jan 31, 2023 · 6 comments
Closed

Do not save file to computer #228

tjapro opened this issue Jan 31, 2023 · 6 comments
Milestone

Comments

@tjapro
Copy link

tjapro commented Jan 31, 2023

When I tried to save a file from Whatsapp, I receive a notification about a file downloaded and saved, but there isn't any file saved.
This do not occur on GNOME Web.

Tangram version

        ID: re.sonny.Tangram
       Ref: app/re.sonny.Tangram/x86_64/stable
      Arq.: x86_64
      Ramo: stable
    Versão: 2.0
   Licença: GPL-3.0
    Origem: flathub
   Coleção: org.flathub.Stable
Instalação: system
 Instalado: 679,4 kB
   Runtime: org.gnome.Platform/x86_64/43
       Sdk: org.gnome.Sdk/x86_64/43

Linux distribution
Fedora 37

Flatpak version
Flatpak 1.14.1

Desktop environment
GNOME Shell 42.3 Wayland

@sonnyp
Copy link
Owner

sonnyp commented Jan 31, 2023

Tangram attempts to download these files to ~/Downloads but doesn't have permission to it.
You can use Flatseal to give ~/Downloads write access to Tangram.

I will let user choose where to download files eventually.

@ondras12345
Copy link

ondras12345 commented Mar 19, 2023

Hi, I have the same problem.
Ubuntu 20.04.6 LTS
Flatpak 1.6.5
GNOME 3.36.8 X11
I have added /home/$USER/Downloads as allowed directory using Flatseal, but it didn't help.

When I start the application from the command line and try do download something, I get the following error message:

$ flatpak info re.sonny.Tangram                       

Tangram - Browser for your pinned tabs

          ID: re.sonny.Tangram
         Ref: app/re.sonny.Tangram/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 2.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 679,4 kB
     Runtime: org.gnome.Platform/x86_64/43
         Sdk: org.gnome.Sdk/x86_64/43

      Commit: e4a4fd76a4032685fe8dabfa6a53cebbe5eb8fd1673b42decdfe9c5413744240
      Parent: 82b2ab1175c700497297e5de554008567d0a62ef2f0e00ee61623dbe1a766542
     Subject: v2.0 (#27) (af8ac449)
        Date: 2023-01-17 23:48:28 +0000


$ flatpak run re.sonny.Tangram
Gjs-Message: 18:49:42.087: JS LOG: env: flatpak
Gjs-Message: 18:49:42.087: JS LOG: data_dir: /home/ondra/.var/app/re.sonny.Tangram/data/Tangram
Gjs-Message: 18:49:42.087: JS LOG: cache_dir: /home/ondra/.var/app/re.sonny.Tangram/cache/Tangram
Gjs-Message: 18:49:42.087: JS LOG: config_dir: /home/ondra/.var/app/re.sonny.Tangram/config/Tangram
Gjs-Message: 18:49:42.087: JS LOG: applications_dir: /home/ondra/.local/share/applications
Gjs-Message: 18:49:42.087: JS LOG: keyfile_settings_path: 
Gjs-Message: 18:49:42.157: JS LOG: programInvocationName: /app/bin/re.sonny.Tangram
Gjs-Message: 18:49:42.157: JS LOG: _: /usr/bin/flatpak
Gjs-Message: 18:49:42.157: JS LOG: pkg.version: 2.0
Gjs-Message: 18:49:42.157: JS LOG: pkg.pkglibdir: /app/lib/re.sonny.Tangram
Gjs-Message: 18:49:42.157: JS LOG: pkg.datadir: /app/share
Gjs-Message: 18:49:42.157: JS LOG: pkg.localedir: /app/share/locale
Gjs-Message: 18:49:42.157: JS LOG: pkg.pkgdatadir: /app/share/re.sonny.Tangram
Gjs-Message: 18:49:42.157: JS LOG: pkg.prefix: /app
Gjs-Message: 18:49:42.157: JS LOG: pkg.moduledir: resource:///re/sonny/Tangram/js
Gjs-Message: 18:49:42.157: JS LOG: pkg.name: re.sonny.Tangram
Gjs-Message: 18:49:42.157: JS LOG: pkg.libdir: /app/lib
Gjs-Message: 18:49:42.157: JS LOG: argv /app/bin/re.sonny.Tangram

(re.sonny.Tangram:2): Gjs-CRITICAL **: 18:50:21.585: JS ERROR: Error: No property do_overwrite_confirmation on GtkFileChooserNative
buildWebView/</<@resource:///re/sonny/Tangram/src/WebView.js:154:22
main@resource:///re/sonny/Tangram/src/main.js:58:22
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
@file:///app/bin/re.sonny.Tangram:28:41
@file:///app/bin/re.sonny.Tangram:34:6

@zrooda
Copy link

zrooda commented Apr 11, 2023

Adding only the Downloads folder permissions in Flatseal doesn't seem to work, setting filesystem=home for all user files does.

@sonnyp sonnyp added this to the 2.1 milestone Apr 24, 2023
@sonnyp sonnyp closed this as completed Apr 30, 2023
@tjapro
Copy link
Author

tjapro commented May 10, 2023

I will let user choose where to download files eventually.

@sonnyp , I notice this issue is closed with the new version of Tangram.
But it seems this is not resolved, or is it need to install Flatseal to correct it?

PS: Thanks for your hard work!

@sonnyp
Copy link
Owner

sonnyp commented May 10, 2023

It should be fixed.

Tangram should ask you where to download the file. See

download.connect("decide-destination", (self, suggested_filename) => {

Please file a new bug report with steps to reproduce if it's not solved for you.

@munmuni
Copy link

munmuni commented Sep 2, 2024

This makes little sense, why not enable downloads to download directory initially only? Please enable if possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants