Icona impossibile [RISOLTO]

Forum di supporto per utenti di lingua italiana
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Post Reply
Giolinux
Level 2
Level 2
Posts: 52
Joined: Sat Aug 19, 2023 6:28 am

Icona impossibile [RISOLTO]

Post by Giolinux »

Icona impossibile [RISOLTO]
Salve a tutti, vorrei impostare un'icona "unica" per ogni tipo di file video MP4
esistenti sul mio pc.
Cliccando su icona proprietà, clicco su la figura e mi da la possibilità di scegliere
un' icona, ma lo fa solo per quell'unico file.
Vorrei poterlo fare per tutti i file MP4 del mio computer senza doverlo fare uno per volta.
Ci sarebbe un sistema? Grazie

System:
Kernel: 5.15.0-100-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4
tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia
base: Ubuntu 22.04 jammy
Machine:
Type: Desktop Mobo: ASUSTeK model: PRIME H310M-K R2.0 v: Rev X.0x serial: <superuser required>
UEFI: American Megatrends v: 1606 date: 10/19/2020
CPU:
Info: 6-core model: Intel Core i5-9400F bits: 64 type: MCP smt: <unsupported> arch: Coffee Lake
rev: A cache: L1: 384 KiB L2: 1.5 MiB L3: 9 MiB
Speed (MHz): avg: 800 min/max: 800/4100 cores: 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800
bogomips: 34798
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: ASUSTeK driver: nvidia v: 390.157 pcie:
speed: 8 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1,DVI-D-1 bus-ID: 01:00.0
chip-ID: 10de:1c82 class-ID: 0300
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 92 s-size: 530x301mm (20.9x11.9") s-diag: 610mm (24")
Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
diag: 604mm (23.8")
OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 390.157 direct render: Yes
Audio:
Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus-ID: 00:1f.3 chip-ID: 8086:a2f0 class-ID: 0403
Device-2: NVIDIA GP107GL High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
Sound Server-1: ALSA v: k5.15.0-100-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK PRIME B450M-A
driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 03:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 1.4 TiB used: 464.87 GiB (32.5%)
ID-1: /dev/sda vendor: Fanxiang model: S101 1TB MX size: 953.87 GiB speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 546
ID-2: /dev/sdb vendor: Patriot model: P210 512GB size: 476.94 GiB speed: 6.0 Gb/s type: SSD
serial: <filter> rev: 4A0 scheme: GPT
Partition:
ID-1: / size: 467.89 GiB used: 141.76 GiB (30.3%) fs: ext4 dev: /dev/sdb3
ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/sdb2
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 10 rev: 2.0 speed: 480 Mb/s
chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-4:2 info: Logitech Keyboard K120 type: Keyboard,HID driver: hid-generic,usbhid
interfaces: 2 rev: 1.1 speed: 1.5 Mb/s power: 90mA chip-ID: 046d:c31c class-ID: 0300
Device-2: 1-6:3 info: Holtek USB Gaming Mouse type: Keyboard,Mouse,HID
driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 350mA chip-ID: 04d9:a088
class-ID: 0300
Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s chip-ID: 1d6b:0003
class-ID: 0900
Sensors:
System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 37 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 31%
Repos:
Packages: 2699 apt: 2666 flatpak: 33
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
1: deb [signed-by=/etc/apt/keyrings/graphics-drivers-ppa-jammy.gpg] https: //ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy main
Active apt repos in: /etc/apt/sources.list.d/kisak-kisak-mesa-jammy.list
1: deb [signed-by=/etc/apt/keyrings/kisak-kisak-mesa-jammy.gpg] https: //ppa.launchpadcontent.net/kisak/kisak-mesa/ubuntu jammy main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb https: //mirror.metanet.ch/linuxmint virginia main upstream import backport
2: deb http: //pkg.adfinis.com/ubuntu jammy main restricted universe multiverse
3: deb http: //pkg.adfinis.com/ubuntu jammy-updates main restricted universe multiverse
4: deb http: //pkg.adfinis.com/ubuntu jammy-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Active apt repos in: /etc/apt/sources.list.d/oibaf-graphics-drivers-jammy.list
1: deb [signed-by=/etc/apt/keyrings/oibaf-graphics-drivers-jammy.gpg] https: //ppa.launchpadcontent.net/oibaf/graphics-drivers/ubuntu jammy main
Info:
Processes: 252 Uptime: 3h 15m wakeups: 0 Memory: 31.28 GiB used: 2.24 GiB (7.2%) Init: systemd
v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown Client: nemo-desktop
inxi: 3.3.13
Last edited by Giolinux on Mon Mar 11, 2024 2:39 pm, edited 2 times in total.
Paolo_C
Level 5
Level 5
Posts: 854
Joined: Sat Feb 10, 2018 11:20 am
Location: Italy

Re: Icona impossibile

Post by Paolo_C »

Salve,
il topic alla pagina seguente è un po vecchiotto, ma ha una soluzione, provala:
https://forum.ubuntu-it.org/viewtopic.php?t=617641
Giolinux
Level 2
Level 2
Posts: 52
Joined: Sat Aug 19, 2023 6:28 am

Re: Icona impossibile

Post by Giolinux »

Cambiare tipologia file per estensione
(in questo caso MP4)


Se non è già installato installare gedit, installarlo con:


sudo apt install gedit

Creare file XML per l'associazione MIME:


gedit ~/.local/share/mime/packages/x-dxf.xml

Contenuto da inserire nel file XML

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="video/mp4">
<comment>MPEG-4 video file</comment>
<generic-icon name="vlc"/>
<glob pattern="*.mp4"/>
</mime-type>
</mime-info>

Salvare il file in con estensione x-odt.xml nella directory


~/.local/share/mime/packages/

se non c’è creala con:

mkdir -p ~/.local/share/mime/packages/

Aggiornare il database MIME :


javascript
update-mime-database ~/.local/share/mime

S.E & O
Post Reply

Return to “Italiano - Italian”