Menu Libre *.desktop to Prevent Duplicate Icons

Issues: See multiple icons when launching from favorites of icon created by menu-libre

The issue you're experiencing happens when an application is launched with a different WM_CLASS or StartupWMClass than what's specified in the .desktop entry, leading to a new icon being created instead of reusing the one in the favorites bar.

You can resolve this by adding the StartupWMClass entry to your .desktop file. Here's how you can do it:

Find the WM_CLASS of the Running Application:

Launch the Orca Slicer app.
Open a terminal and run:

xprop | grep WM_CLASS

Then, click on the Orca Slicer window. The output will show something like this:

WM_CLASS(STRING) = "orca-slicer", "OrcaSlicer"

The first string (e.g., "orca-slicer") is the one you need.

Edit the .desktop File:

gedit /home/mruckman/.local/share/applications/menulibre-orcaslicr.desktop

Put this at the end of the file, for example

StartupWMClass=orca-slicer

Installing Bottles for Wine in Ubuntu 22.04

Refer; https://linuxcapable.com/how-to-install-bottles-on-ubuntu-linux/

Install Flatpak for Bottles Installation (Skip if Installed)

Begin by installing Flatpak, which the package manager requires for bottles. If Flatpak is already in your system, you can skip this step.

sudo apt install flatpak -y
reboot

Enable Flathub for Bottles Installation

To proceed with the installation of Bottles, enable Flathub repository with the following command:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Finally, install Bottles using Flatpak. Run the command below in your terminal:

flatpak install flathub com.usebottles.bottles -y

Launch Bottles from the command line or through the GUI

flatpak run com.usebottles.bottles

This command instantly activates Bottles, providing immediate access to its features. Using the command line for launching applications like Bottles is a direct approach many users favor for its speed and simplicity.

For those who prefer a graphical user interface (GUI), Bottles can be launched without using the command line. Follow these steps to open Bottles through the GUI:

  • Click on Activities at the top left corner of your screen.
  • Select Show Applications to view a list of all installed applications.
  • Scroll to find and click on the Bottles application icon.

Work through the settings, it seems like have an installer is a good thing.

PopOS 22.04

Setting, to prevent laptop from suspending when lid closed

sudo apt-get install gnome-tweaks

Open up Tweaks, it's the first option.

POPOS with Nvida Drivers

The screen was a bit wierd, it detected two monitor, and changed the setting to a single image.

The audio was quite low, how to turn it up.

Ubuntu 22.04 CPU Performance

Always would see the following error mesage on the Power Settings

Performance mode temporarily disabled due to high operating temperature.

Refer: https://askubuntu.com/questions/1419396/how-to-force-enable-performance-mode-in-ubuntu-22-04

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Enable with this program instead.

sudo apt update
sudo apt install cpupower-gui
cpupower-gui

Check to see what's the setting

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Rename Files

Using Regular Expressions and rename utility

sudo apt-get install rename
rename 's/\.jpeg$/\.jpg/' *.jpeg
rename "s/ - Unknown/-Track/g" *

Change File Extensions

$ rename 's/.m4v$/.mp4/' *.m4v

Pika Backup

Refer: https://flathub.org/apps/org.gnome.World.PikaBackup
Video: https://www.youtube.com/watch?v=W30wzKVwCHo

Important! If you plan on using Pika Backup across devices, such as a Desktop and you also want to see those backup files on a laptop.

In PikaBackup, the archive prefix is a part of the naming convention used to identify backup archives. When you try to open or continue a backup on a different device, PikaBackup detects that the prefix is already in use by the backups from the original device. This is a safeguard to prevent conflicts and potential data corruption.

Here's what you should do:

  1. Understand the Archive Prefix: The archive prefix is a unique identifier for the backup series. It helps distinguish backups from different devices or different backup sets.

  2. Use a New Archive Prefix: When PikaBackup asks you to use a new archive prefix, it means you need to provide a new, unique identifier for the backup series on your laptop. This will ensure that the new backup set doesn't interfere with the existing backups from your desktop.

  3. Create a New Backup Set:

  • Open PikaBackup on your laptop.
  • Choose to create a new backup.
  • When prompted, enter a new archive prefix. This can be any string that you choose, such as "LaptopBackup_YYYYMMDD".
  • Proceed with the backup process.
  1. Avoid Overwriting Existing Backups: By using a new archive prefix, you ensure that the new backups created on your laptop won't overwrite or conflict with the backups from your desktop.

  2. Consistency Across Devices: If you need to access or restore data from the original backup on your laptop, ensure you are using the correct prefix and paths as used on the desktop.

By following these steps, you can safely manage your backups on multiple devices without risking data loss or corruption.

Installation

flatpak install flathub org.gnome.World.PikaBackup

Remove

flatpak remove flathub org.gnome.World.PikaBackup

Cleanup Old Data

Refer: https://www.reddit.com/r/pop_os/comments/xa88sq/removing_flatpaks/

flatpak uninstall --all --delete-data

This will prompt you for each application to remove.

Ubuntu 22.04 System errors with Tracker, we might need to disable it

System errors with Tracker, we might need to disable it

Refer (Thread): https://ubuntuforums.org/showthread.php?t=2488303
Refer (Possible Fix by disable): https://www.linuxuprising.com/2019/07/how-to-completely-disable-tracker.html

Status and Determine Which Tracker Being Used

tracker3 status

From Fix Article for Tracker 3

systemctl --user mask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service tracker-writeback-3.service tracker-xdg-portal-3.service tracker-miner-fs-control-3.service

sudo tracker3 reset -s -r

sudo reboot

Undo the Changes

sudo systemctl --user unmask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service tracker-writeback-3.service tracker-xdg-portal-3.service tracker-miner-fs-control-3.service

sudo reboot