@kata55 you can actually avoid the need to add these flags on a per-app basis,
Create $HOME/.config/electron-flags.conf
with contents
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto
Git Clone URL: | https://aur.archlinux.org/losslesscut-bin.git (read-only, click to copy) |
---|---|
Package Base: | losslesscut-bin |
Description: | Crossplatform GUI tool for lossless trimming/cutting of video/audio files |
Upstream URL: | https://github.com/mifi/lossless-cut |
Licenses: | MIT |
Conflicts: | losslesscut |
Provides: | losslesscut |
Submitter: | dmp1ce |
Maintainer: | dmp1ce (Lulzagna) |
Last Packager: | Lulzagna |
Votes: | 55 |
Popularity: | 0.52 |
First Submitted: | 2020-11-10 13:10 (UTC) |
Last Updated: | 2024-11-01 15:21 (UTC) |
@kata55 you can actually avoid the need to add these flags on a per-app basis,
Create $HOME/.config/electron-flags.conf
with contents
--enable-features=WaylandWindowDecorations
--ozone-platform-hint=auto
No need to provide a .desktop file in the aur. Use the file from the repo (which also contains the correct mimetype associations) patched with the correct path
Adding to the desktop file this line:
MimeType=video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;video/x-flv;video/vnd.rn-realvideo;video/mp4;video/mp4v-es;video/mp2t;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;
would be nice. See https://github.com/mifi/lossless-cut/blob/master/no.mifi.losslesscut.desktop
Yes, same here, for me removing tutanota-desktop-bin-debug was enough to unblock the installation of losslesscut-bin. But then I saw that the latter package has created these /usr/lib/debug/.build-id conflicting files. This "debug" option of makepkg results in the implicit installation of *-bin-debug packages, apparently. And I never enabled this option myself, so it is the default value.
I have removed a bunch of *-debug packages from my system lately.
Regarding the debug files "exists in filesystem" issue - I've had this happen with many other packages. I figured I did something to have the "-debug" packages be installed. When this happens I just remove the conflicting debug packages.
I don't recall ever seeing -debug packages until this year, so something might have changed with makepkg.conf or yay perhaps.
@nik_gr I have never tried with the debug
option in /etc/makepkg.conf
to be honest. I don't know how to help you with that but I'm glad it is working now.
@dmp1ce
Tried, no luck. Something is odd. Trying to upgrade Tutanota now and getting this:
... Packages (2) tutanota-desktop-bin-240.240816.0-1 tutanota-desktop-bin-debug-240.240816.0-1
Total Installed Size: 322.72 MiB Net Upgrade Size: 11.15 MiB
:: Proceed with installation? [Y/n] (2/2) checking keys in keyring [##########################################################################] 100% (2/2) checking package integrity [##########################################################################] 100% (2/2) loading package files [##########################################################################] 100% (2/2) checking for file conflicts [##########################################################################] 100% error: failed to commit transaction (conflicting files) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/01/4cf96203aed6b44b362f930a85553ebe5ba70c exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/01/4cf96203aed6b44b362f930a85553ebe5ba70c.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/1e/b3c381073b13ceede33b7fc0079262496d526d exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/1e/b3c381073b13ceede33b7fc0079262496d526d.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/31/18e8c152e4ef215bc843fbb3ab9281877f7ada exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/31/18e8c152e4ef215bc843fbb3ab9281877f7ada.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/64/cecce815e950bd7e1303f2930efef7b804cdae exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/64/cecce815e950bd7e1303f2930efef7b804cdae.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/87/003aa4689d6ea1fd547c9c771e443afdb6d9a2 exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/87/003aa4689d6ea1fd547c9c771e443afdb6d9a2.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/a8/bead032b728141d97788324d6540887ae9caf2 exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/a8/bead032b728141d97788324d6540887ae9caf2.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/e0/d994ca1d7810114cf0e469ea499412d46e017f exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/e0/d994ca1d7810114cf0e469ea499412d46e017f.debug exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/f4/f4df1c78477202a87b3207a0488cd9196e3ed7 exists in filesystem (owned by losslesscut-bin-debug) tutanota-desktop-bin-debug: /usr/lib/debug/.build-id/f4/f4df1c78477202a87b3207a0488cd9196e3ed7.debug exists in filesystem (owned by losslesscut-bin-debug) Errors occurred, no packages were upgraded. -> error installing: [/home/nik/.cache/yay/tutanota-desktop-bin/tutanota-desktop-bin-240.240816.0-1-x86_64.pkg.tar.zst /home/nik/.cache/yay/tutanota-desktop-bin/tutanota-desktop-bin-debug-240.240816.0-1-x86_64.pkg.tar.zst] - exit status 1
$ ls -l /usr/lib/debug/.build-id/31/18e8c152e4ef215bc843fbb3ab9281877f7ada.debug 1 ↵ lrwxrwxrwx 1 root root 48 Aug 12 14:36 /usr/lib/debug/.build-id/31/18e8c152e4ef215bc843fbb3ab9281877f7ada.debug -> ../../usr/share/losslesscut/libvulkan.so.1.debug
So, these conflicts are indeed the real files in my filesystem and they overlap between (at least) this package and tutanota-desktop-bin-debug one.
I have disabled "debug" option in /etc/makepkg.conf and the problem went away.
@nik_gr Try clearing your build cache. There is a file in the build which has a conflict I think.
Most recent version fails to install:
looking for conflicting packages...
Packages (2) losslesscut-bin-3.62.0-1 losslesscut-bin-debug-3.62.0-1
Total Installed Size: 432.56 MiB Net Upgrade Size: 12.14 MiB
:: Proceed with installation? [Y/n] (2/2) checking keys in keyring [########################################################] 100% (2/2) checking package integrity [########################################################] 100% (2/2) loading package files [########################################################] 100% (2/2) checking for file conflicts [########################################################] 100% error: failed to commit transaction (conflicting files) losslesscut-bin-debug: /usr/lib/debug/.build-id/f4/f4df1c78477202a87b3207a0488cd9196e3ed7 exists in filesystem (owned by tutanota-desktop-bin-debug) losslesscut-bin-debug: /usr/lib/debug/.build-id/f4/f4df1c78477202a87b3207a0488cd9196e3ed7.debug exists in filesystem (owned by tutanota-desktop-bin-debug) Errors occurred, no packages were upgraded. -> error installing: [/home/nik/.cache/yay/losslesscut-bin/losslesscut-bin-3.62.0-1-x86_64.pkg.tar.zst /home/nik/.cache/yay/losslesscut-bin/losslesscut-bin-debug-3.62.0-1-x86_64.pkg.tar.zst] - exit status 1
Looks like this package and tutanota-desktop-bin-debug both want /usr/lib/debug/.build-id/f4/ - part of the same framework they use?
Icon fixed, ty.
Pinned Comments
kata55 commented on 2023-07-06 20:07 (UTC) (edited on 2023-07-06 20:09 (UTC) by kata55)
If anyone, like me, uses this on GNOME on Wayland with Fractional Scaling (due to a 14" 2560x1440 screen in their laptop), you may find this Electron trick useful to make the app work in native Wayland mode instead of
xwayland
(so that it does not appear blurry) - run the app with this command:To make the change persist, change the
Exec=...
line in/usr/share/applications/losslesscut-bin.desktop
to:It would be probably great if the
.desktop
file in this AUR would have this automatically included if Wayland is detected as the display server, but I'm not sure how do you go about this; Also this seems to be a recurring theme with all Electron apps, so I'm thinking about some system-wide solution to be brought up on Arch upstream - no point in having every single Electron app packager waste the effort repeating this.dmp1ce commented on 2021-10-29 17:03 (UTC)
I'm following the releases on this page: https://github.com/mifi/lossless-cut/releases
I'm not following all the tagged versions.