Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BL
Posts
9
Comments
187
Joined
2 yr. ago

  • TLDR, scroll down to the script. Make a .sh file, allow it to run as a program, set it as your default program to open whatever filetype

    Navigate to the appropriate/your favorite folder to store portable applications. Make the below script as a new file called WhateverYouWant.sh
    Fellow newbies, the .sh is important.
    Then set this .sh file's permissions to allow executing this file as a Program; may differ by distro.

    #!/bin/bash

    # Script to set a windows application (that runs through WINE) as the default to open PDF files:

    # PURPOSE: To convert Linux-style filename to Windows-style
    # to pass as an argument to wine when starting PDF XChange Viewer
    Filename="z:"${1//\//\\}

    # Assuming you use the default installation folder for PDF
    # XChange Viewer in Wine
    App='eval wine "C:\Program Files\Filepath\To\Your\PDFXEdit.exe" "'$Filename'"'
    $App

    # Adapted originally from:
    # http://sodeve.net/foxit-reader-on-ubuntu-linux-through-wine/
    # Archive.org'd at: \https://web.archive.org/web/20160918205551/http://sodeve.net/2007/12/foxit-reader-on-ubuntu-linux-through-wine/
    # Additional credit in 2024:
    # https://forums.linuxmint.com/viewtopic.php?t=153092
    # https://web.archive.org/web/20150213210206/http://crunchbang.org/forums/viewtopic.php?pid=173574#p173574
    # https://web.archive.org/web/20150213210203/http://www.fsavard.com/flow/2009/03/pdf-annotation-under-linux-with-wine-and-pdf-xchange-viewer/

    You can also check the appropriate windows-formatted filepath with Winetricks, using its built in windows File Explorer, finding your .exe, and copying the path starting from "C:.
    [Edit: the default install folder in the script would normally be C:\Program Files my bad. I downloaded the portable version and shoved it wherever, so my filepath looks like "C:\users\Froggy\Documents\PDFXchange test01\PDFXEdit.exe"]

    Mint Cinnamon 21:

    • right click your shell script file, Properties > Permissions > check on "Allow executing file as program".
    • Then find a PDF file (or whatever filetype), right click, Open With > 'Other Application...' > browse for this .sh file you just made.
    • After selecting this .sh file, be sure to select "Set as default" before clicking OK.

    I could not tell you for the life of me why this didn't work with a .desktop file on Mint 21.

    I spent the past few hours down the wrong rabbit holes with .desktop and exec=wine 'filepaths' and just about died of asphyxiation from absolutely nothing happening. I've been wanting to do the same thing too for a while, but decided that right before bedtime was the perfect time to look it up.
    [Edit: I figured out spacing in the script. Also moved the Mint specific instructions down the comment for flow clarity]

  • "I never learned or thought about how long my trash will actually insist on existing and polluting my environment. I'm completely ignorant of how incredibly slowly plastic decomposes and how toxic it is for plastic to leach into the lowest parts of the food chain and concentrate on its way up."

    "AFAIK, because the earth will take care of it somehow - everything turns into dirt when you leave it in the dirt long enough, right?"

    "I'm just sooo ignorant, plastic will just break back up into little plastic fibers and the ocean can recycle it for us, like tree bark or w/e, right?"

    That's my best, but still invalid, justification. What do I win ::: spoiler spoiler /sarcasm (I hope this spoiler works bc it's not working on boost) :::

  • I once convinced one of my aunts that leaving your cart out gives companies another excuse to raise prices again
    (not that I actually think that's true; i just didn't want to feel like an butthole for leaving our cart out)

  • Permanently Deleted

    Jump
  • What's a PPA, and, if it's alright to ask, which things did you need to downgrade or remove before upgrading mint?

    I'm still on mint cinnamon 21, saving up for a beefier drive to back up to before I would upgrade.

  • US based here. Saaaame, I didn't like Planet. I get Plant Folk oatmilk from Sam's club, and I now detest anything more thick or savory than that. If anything, Plant Folk's a little watery compared to most oat milks I tried locally.

  • "Simple Tab Groups" extension for Firefox desktop allowed me to evolve from constantly rearranging/bookmarking ~20 shrinking tabs in a window and dropping projects; to hoarding 30-40 tabs worth of research material and unfinished project ideas in rotating groups

  • Seconding Linux Mint!

    I came to linux because I was building a new pc at the time win11 came out, and I saw how much more like apple it looked.

    I wasn't afraid to try linux because I'd already done some easy mods to my steam deck (decky and retropi). Using the steam deck's computer desktop was almost like using older windows to me; I appreciated that.

    Downloading programs was like android to me; using the system's app store, or sideload an app or a second app store, or follow the dev's readme.txt. Easy, fun, free, ad-free.

    I downloaded different linux distributions to a bunch of spare thumb drives and tried them one at a time. I figured, the moment I had a problem that lasted more than an hour with one distro, I'd move on to the next. If I couldn't hack it past four tries, I'm going back to windows 10.

    Linux Mint was the second attempt, and it's pretty intuitive to use, imo. It feels like the ease of using android, but with a desktop and my beloved windows-style taskbar.

  • I bought a brother printer model J1010DW because it's brother, right? Also it was the cheapest brother printer in stock locally around the time I was sick & tired of detouring to the print shop.

    The color cartridges still have tons of ink swashing in them, but the printer won't even print in b&w because it detects the other cartridges as empty. So I try the tape-over-the-ink-window method, and my printer says, HMM, I GUESS THERE'S INK NOW, BUT THESE MUST NOT BE BROTHER PRINTER CARTRIDGES, HURR DURR, and makes itself an overweight scanner.