[-] BlindFrog@lemmy.world 7 points 1 day ago* (last edited 1 day 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]

[-] BlindFrog@lemmy.world 7 points 2 weeks ago

"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/sarcasm (I hope this spoiler works bc it's not working on boost)

103

If I'm an adult who wants to experience splashing around and wading round the pool, but whose swimming capabilities extend as far as doggy paddling to safety and floating on my back - what can I even do to have fun at the pool?

What do you do at the pool?

Bonus round: kind of out of my budget to pay for swimming classes, and available friends & family are nil. :c
But I borrowed a life jacket from a coworker, and could buy cheap floaties or a pool noodle.

[-] BlindFrog@lemmy.world 7 points 1 month ago

Thank you for sharing their message

[-] BlindFrog@lemmy.world 9 points 2 months ago

I have a head canon now about your username origin that you, at least once in your life, had to face a horribly distempered ceiling fan, but just don't remember it because of the capitation.

[-] BlindFrog@lemmy.world 6 points 4 months ago

Nah, it's not this trilogy. IIRC, His Dark Materials is about a girl and a boy and people's spirit animals, parallel universes, and smiting god (probably).

[-] BlindFrog@lemmy.world 8 points 5 months ago

If I could carry around a Limmings History Buff Fellowship member card with qr code links to sites like these, it'd be just handy dandy for the torturing-friends-and-family part.

[-] BlindFrog@lemmy.world 9 points 6 months ago

So this reminds of this book I read called The Circle, in which everyone's fascination with technology and tracking and data collecting slippery-sloped at breakneck speed into 1984, except any stranger with an internet connection became your Big Brother.

We have many other environmental ways to encourage people to drive slower, like narrower lanes, or those long thin rumble-strip-style speed bumps, or landscaping with greenery.

BTW, why is it so hard to get information off google on traffic calming studies for freeways? Everything is about urban or suburban areas, smh. When I use "freeways" in quotes, suddenly I get a whole bunch of irrelevant results about people trying to get over their fear of driving on the freeway. Wtf google.

[-] BlindFrog@lemmy.world 46 points 7 months ago

When the ear-to-brain ping is 900ms

[-] BlindFrog@lemmy.world 6 points 7 months ago

I definitely feel like saying it again - it works! Thank you. For sure, I can modify the if statement for what I'm working with. Thank you so much!

5
submitted 7 months ago* (last edited 7 months ago) by BlindFrog@lemmy.world to c/libreoffice@lemmy.ml

SOLVED, with a huge thank you to !Donovar@lemmy.world
https://lemmy.world/comment/6271130

Hiyo Librecalc pros. Hoping someone has an idea how to automate or minimize the steps for this. Or where should I start? I'm trying to automate transcribing a list from:
Closet_01
Cartridge123
Cartridge234
Garagenook_01
Cartridge456
Toolbox567
Toolbox789
Garagenook_02
Cartridge890

Into an array/table like:
Cartridge123, Closet_01
Cartridge234, Closet_01
Cartridge456, Garagenook_01
Toolbox567, Garagenook_01
Toolbox789, Garagenook_01
Cartridge890, Garagenook_02

I get it; I should just carry around a barcode list of all my shelf names and take turns between scanning the list, tabbing over on my phone, scanning a box, then tabbing back again. But... what if I want to be lazier and just scan things in an order and automate the rest later?

Is there a faster way than copy-pasting my way down?

I got as far as making an adjacent column with a formula to check for "_", then copying the location if "_" was found.

[-] BlindFrog@lemmy.world 7 points 7 months ago

Thanks for checking. I asked ChatGPT3.5 to make a solution with excel since I have limited access to it at work. CG came up with making my data a table with Power Query & using a Fill tool, but Fill>Down isn't doing what CG is saying it's supposed to do.

I hope I could do this at home though because I only have Onlyoffice & Libreoffice, & excel in the browser is so limited.

89
submitted 7 months ago* (last edited 7 months ago) by BlindFrog@lemmy.world to c/linux@lemmy.ml

Short term: I'm trying to automate transcribing a list from:
A
123
234
B
456
567
789
C
345

Into an array/table
123, A
234, A
456, B
567, B
789, B
345, C

Long term answer I'm looking for: where's a lemmy community I can ask questions like this (like about using formulas in Librecalc/Onlyoffice suite/maybe VBA with them too) in the future?

Or, if not yet established on lemmy, recommended librecalc/Onlyoffice forums?

Thank you for your time.

[-] BlindFrog@lemmy.world 7 points 8 months ago

I'm just thinking why someone would want to get a tattoo on that side of their arm

[-] BlindFrog@lemmy.world 16 points 9 months ago

Someone correct me if I'm wrong, but I believe common core refers to the core standards of knowledge & skills that the government requires in public education.

view more: next ›

BlindFrog

joined 1 year ago