Coder Social home page Coder Social logo

Comments (5)

jmsalvat avatar jmsalvat commented on June 25, 2024

same if build with KDSingleApplication
by the way what is KDSingleApplication for?

same for strawberry-1.0.22 qt5
strawberry-1.0.23 qt6 and KDSingleApplication
strawberry-1.0.23 qt5

from strawberry.

jmsalvat avatar jmsalvat commented on June 25, 2024

actually delete from disk does delete file only when file is playing.
this is odd
I expect it to delete any file
playing or not ,
in database or not
when file is in playlist...
Am I wrong to assume this?

from strawberry.

jonaski avatar jonaski commented on June 25, 2024

actually delete from disk does delete file only when file is playing. this is odd I expect it to delete any file playing or not , in database or not when file is in playlist... Am I wrong to assume this?

This does not make sense. The delete feature works fine here. This is most likely a system related issue, not a bug in strawberry. Check file permissions, etc.
When deleting files in strawberry, it uses the trash, if the trash on the system is not working or is disabled it might cause an issue.

from strawberry.

jmsalvat avatar jmsalvat commented on June 25, 2024

This does not make sense.

agreed

The delete feature works fine here

on my laptop it does work fine too
on the desktop it used to work fine.. not anymore

file permissions ok
inode ok
trash ok
no problemes on os/DE(KDE5)

could this be a database related problem?

ls -lah ~/.local/share/strawberry/strawberry/strawberry.db
-rw-r--r-- 1 jms jms 11M 14 févr. 22:04 /home/jms/.local/share/strawberry/strawberry/strawberry.db
df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
devtmpfs            10M       0   10M   0% /dev
tmpfs               16G    6,4M   16G   1% /dev/shm
tmpfs               16G    1,7M   16G   1% /run
/dev/nvme0n1p4      44G     35G  7,7G  82% /
/dev/nvme0n1p5      44G     31G   12G  73% /usr
efivarfs           128K     16K  108K  13% /sys/firmware/efi/efivars
/dev/nvme0n1p6      40G     16G   22G  42% /opt
/dev/nvme0n1p7      68G     50G   15G  78% /home
/dev/sda2          876G    632G  200G  77% /home/data
/dev/sdb1          1,8T    1,3T  367G  79% /home/T2
tmps                16G       0   16G   0% /var/tmp/portage
tmps               4,0G    666M  3,4G  17% /tmp
tmpfs              3,2G     16K  3,2G   1% /run/user/1000
sqlite3 ~/.local/share/strawberry/strawberry/strawberry.db "pragma integrity_check"
ok

starting strawberry:

strawberry --verbose
14:41:31.415 INFO  main:180                         Strawberry 1.0.23 Qt "6.6.1"
14:41:31.416 INFO  main:181                         "Gentoo Linux 2.14 - (linux 6.7.4-gentoojms-0.7.38) [x86_64]"
14:41:31.490 INFO  main:47                          TagReader worker connecting to "/tmp/strawberry_974952684"
14:41:31.510 ERROR GlobalShortcutsBackendKDE:161    KGlobalAccel returned QList() when setting shortcut QList(QKeySequence("Media Next"))
14:41:31.511 ERROR GlobalShortcutsBackendKDE:161    KGlobalAccel returned QList() when setting shortcut QList(QKeySequence("Media Play"))
14:41:31.511 ERROR GlobalShortcutsBackendKDE:161    KGlobalAccel returned QList() when setting shortcut QList(QKeySequence("Media Previous"))
14:41:31.511 ERROR GlobalShortcutsBackendKDE:161    KGlobalAccel returned QList() when setting shortcut QList(QKeySequence("Media Stop"))
14:41:31.607 INFO  Player:954                       Registered URL handler for "subsonic"
14:41:31.610 INFO  Player:954                       Registered URL handler for "tidal"
14:41:31.617 INFO  Player:954                       Registered URL handler for "qobuz"

if I select a file from strawberry file browser, put it in the playlist then delete it
I got this

14:41:50.343 WARN  unknown                          QFSFileEngine::open: No file name specified 

from strawberry.

jmsalvat avatar jmsalvat commented on June 25, 2024

This does not make sense. The delete feature works fine here. This is most likely a system related issue, not a bug in strawberry. Check file permissions, etc. When deleting files in strawberry, it uses the trash, if the trash on the system is not working or is disabled it might cause an issue.

Thanks for pointing me to the right direction.
I finally nailed it
the trash was the issue.

other than the /home/user ,
I had another mounted filesystem as root and a user directory with music files in it.
strawberry can not create .trash directory then can not use it then do not delete

solution:
do not have top mounted directory as root but as strawberry user
or create a trash directory with good permission for strawberry user at the root dir of the mounted filesytem

I was only checking the home/user trash forgot that trash could be created on others filesytem.

I am closing this bug

opening a new one about as I think in accordance to freedesktop trash spec strawberry should issue a warning in such case
#1384

from strawberry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.