The officially official Devuan Forum!

You are not logged in.

#176 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-08-04 15:55:37

Fixed a bug in the scraper yesterday morning, then spent the rest of the day adding a playlist function, I need to clean it up and move some things around a bit, but it's completely functional. You hit the Create Playlist button and a window opens up that you can drag-n-drop music into directly from the player or your file manager. You can click the thumbnail below for a larger view.

zqtg0l.jpg

#177 Re: Other Issues » [SOLVED] Does anyone know the syntax for yad to use --css=[string] properly? » 2025-08-01 19:57:41

Solved, couldn't get the css to work inline, but pango did the trick!

#178 Other Issues » [SOLVED] Does anyone know the syntax for yad to use --css=[string] properly? » 2025-08-01 17:06:27

greenjeans
Replies: 1

So yad in it's man page has as one of it's options, a modifier to use css directly in creating a dialog.

--css=[string] , where string can be either a link to a css file, or css commands directly as the string.

But for the life of me I can't figure out the syntax it wants, and there's zero documentation to be found about it other than the one mention in the man page.

I have tried a lot of different combos, direct, quoted, curly brackets+conventional markup, etc. etc. and nothing seems to work. I'm sure it's something simple, but it's escaping me at the moment. I don't want to use an outboard css file for this, it's just one command I need to work, using the line-height property to put some space between lines of text in a paragraph.

Anybody have a clue?

#179 Re: Devuan Derivatives » Keyring? » 2025-08-01 15:38:06

My good friend, you're saying you haven't tried uninstalling it yet? Lol, c'mon bro, dump that garbage, I got 5 bucks says it doesn't do anything to your BiT install.

Just FYI for the database though, I found that Exaile requires not the keyring itself, but the presence of the pkcs package for Exaile to be able to stream internet radio. And this is one of the reasons I am creating a music app of my own to replace it.

#180 Re: Devuan Derivatives » Keyring? » 2025-07-31 22:29:21

BiT will not run properly.

Can you expand on that? What seems to be broken?

#181 Re: DIY » ScrotShot, simple GUI frontend for scrot » 2025-07-31 22:13:28

Fixed plus more testing for a week, looking good now! Uploaded new version.

#182 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-31 20:43:10

And now I added a function to record internet radio streams using Streamripper for the backend. wink

That was actually much easier than most of this stuff has been, only took about half a day.

https://imgdump5.novarata.net/649b0e.png

https://imgdump5.novarata.net/4zwdq1.png

https://imgdump5.novarata.net/7l6rp9.png

649b0e.png

#183 Re: Devuan Derivatives » Keyring? » 2025-07-31 20:41:17

It's because gnome-keyring sucks. I uninstalled it. Then everything works. There's also a hack you can do for the chromium exec command. There's better ways to store passwords anyway, the gnome-keyring is severely dysfunctional.

#184 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-29 01:34:59

Got the scraper/gui fixed, that was an all day ordeal. Added parsing of radio streams to get artist/track data, that also was an all day ordeal.

xefh9e.png

#185 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-27 01:21:12

^^^Mega hugs back atcha Sister!!

Been a looooong day of squashing bugs and fixing behavior but the gui is close, got to start fixing some issues in the scraper script tomorrow too, after that the next phase is integrating a record button to record streams using Streamripper for the backend. wink

Edit: Oh yeah, right now the radio section for now playing only includes the station name and "streaming" as a placeholder for artist/song. Got to spend a hella lotta time I reckon tomorrow going through documentation as I need to parse the stream for that data, probably libavformat will work.

eenjhd.png

#186 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-26 22:20:51

^^^Thanks so much for the kind words SteveM!! It was especially timely in that when I read your post , I had already been working on this app for almost 8 hours, and right in the middle of doing that I found a bug in another app I made that I previously thought was done and needed nothing else, so I had to stop and switch gears and fix it, and boy was I ever aggravated! Your post was a badly needed breath of fresh air, thanks man, it helped me get back on track. smile

#187 Re: Off-topic » A programmer should be a touch typist ? » 2025-07-26 21:24:03

I must confess to not being fast at typing and never having trained. Over the years I went from the guy using 2 fingers and staring at the keyboard to being able to type much faster, but still only with a few fingers and occasional glances at the screen then back to the keyboard to keep myself aligned on the right keys. I know I should learn to type better and faster, but I don't think it is as big of an issue as he claims.

Right there with ya buddy, two fingers still after all these years, but I must say I can do it really fast now, still can't come close to keeping up with somebody who can really type using all fingers and not having to look at the keyboard, my wife is amazing, she can sit there and look me in the face and have a conversation and be typing the whole time at about 80-90 words a minute or better, with zero mistakes.

But thinking on it, more than I type, I copy/paste. Once i've figured out a block of code, I save it and of course whole scripts and such, and when it comes time to make something new I go through those saved snippets and scripts and copy/pasta a lot of it. Then edit manually as needed. If it's something small that I know pretty well like a small shellscript with some yad dialogs, then I just sit down and start typing.

Just tell an AI agent what you want and no stress...

Show me somebody who says that, and i'll show you somebody that's never tried it. Go ahead and blithely ask an LLM to make you something and then try to run it, lol, Better back up everything first and have a spare computer on hand in case one catches on fire, lol!

They are a pretty good search engine and aggregator though, and that does save a fair amount of time.

#188 Re: DIY » ScrotShot, simple GUI frontend for scrot » 2025-07-26 00:35:11

Arrgh, found a bug..I need to update my testing protocol, I guess these things happen when you try to make new things. sad

Fixed now, will re-package and upload later, it was only in the third option, I didn't exit that one properly and it left scrot and scrotshot running in the background, no harm in it and they're tiny processes, but yeah, aggravating, especially as i'm hardcore working all day on another app.

#189 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-25 14:26:52

^^Snazzy! But probably a little too upscale for my ol redneck projects. wink

#190 Re: Other Issues » I seem to crash when I go to a certain website... » 2025-07-24 23:02:52

My spidey-sense is tingling. I understand the ai scrapers and web crawlers, but when it comes to DDOS that seems like an attack or are we overstating the issue using that term?

Because a ddos on a linux git site, one that's NOT in bed with microshit, redcrap, and angry kiddie land (gnomers), seems suspicious.

#192 Re: Other Issues » I seem to crash when I go to a certain website... » 2025-07-24 13:56:21

Plus the little cartoon girl thing is juvenile and a little creepy.

#193 Re: Desktop and Multimedia » Calculator freezes » 2025-07-24 03:48:16

Love me some Galculator, default calculator app I use in everything. One of those apps that really doesn't need any improving. It always just works.

#194 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-24 03:19:57

I also made a PcmanFM right-click context menu extension this morning, to view metadata in audio and video files using ffprobe and exiftool.

The script should work for most any file manager that accepts user-made extensions.

#!/bin/sh

# Name: metaview
# Copyleft: greenjeans 2025, use as you see fit.
# This script when combined with a .desktop file, 
# is to give you a "view metadata" option for a given file 
# when you right click on audio/video files in the file manager.
# Depends: ffmpeg, yad, libimage-exiftool-perl

filename=$(basename "$1")
{
  echo "\n---- Metadata for $filename ----"
  echo "________________________________________"
  echo "\n---- FFprobe ---- \n"
  ffprobe -hide_banner "$1" 2>&1
  echo "\n________________________________________\n"
  exiftool -a -u -g1 "$1"
} | yad --text-info --borders=10 --title="Metadata" --width=600 --height=400 --center --window-icon=preview-file --image=preview-file --margins=10 --button=gtk-close:0

#195 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-24 02:54:59

And now a second app, a simple video player, also using the ffplay backend. Everything working so far, it scrapes ~/Videos and makes a DB of your videos, displays them in the treeview pane, plays the video in the main pane. All controls work in the gui, and all the keyboard/mouse shortcuts work on the video. It will maximize and size accordingly (not true fullscreen though). Less than 300 lines of source code. wink

Next step= integrate the two for a full media player.

Screenie of working proto:

5ogwkp.png

#196 Re: DIY » Working on a new app, the learning curve continues... » 2025-07-22 17:16:30

Version 6 uploaded.

I am constantly amazed at my capability to blithely ignore things that are right in my face.
The VAI app works great, but for some reason I had the scraper script set to
alphabetize by package name rather then the Name field in the .desktops, so the order was
off in the gui. Have fixed the script and now all apps should display in proper order from A-Z.

#197 Re: DIY » New Project, a simple music player. And now a video player!! » 2025-07-22 14:29:12

Man, this stuff is hard, spent half of yesterday getting proper behavior and squashing little self-induced bugs (made a pause button but forgot to make the un-pause method etc.), then spent the rest trying to figure out how to make the search do things in a very complex way, and that part still doesn't work right. Tempted to blow it off as this really doesn't need search as all the artists/albums are already listed in the treeview.

But now Devarch has me thinking about replaygain...*sigh*...from what I read, ffplay supports reading the tags and making volume changes accordingly, but can't calculate it itself, so the music itself would already have to be formatted with the extra metadata. Of course if the music is ripped with some care about volume levels and such to start with, replaygain is not necessary.

If there are folks out there wanting to try what i'm doing but like me don't have formal training or work-experience doing these things, the most important advice I can give is this: Baby steps for everything. And I do mean tiny baby steps. I have some skeleton scripts now for gui's that work and save me time on new projects, but they were built using baby steps too.

It's hard for sure, but the satisfaction level is through the roof when you finally get something that works.

#198 Re: Installation » Fresh install vs dist-upgrade for next release » 2025-07-21 18:02:46

^^ Can't speak to the encryption functions as I never use them, nor uefi, but i've been using it for months now on Devuan excalibur isos.

#199 Re: Installation » Fresh install vs dist-upgrade for next release » 2025-07-21 14:24:43

^^^Exactly what I do. Squashing is my drug and fsmithred is my pharmacist.

I'll be rolling over all my stuff I think, too much work to build a freshie with all the custom settings and crap I have.

#200 Re: Installation » apport package » 2025-07-21 14:14:55

I only ever use one language, yet am forced to accept documents, dictionaries, man pages, etc in every language going.

Testify my friend! It's one of the main reasons I started making my own iso's 15 years ago. But I must say, some things have gotten better about it, at least with some programs, like Libroffice offering separate translation packages.

Lol, IIRC fsmithred once said something like "nobody savages an iso like greenjeans does" hehehe!

I literally went through everything in polkit-1 and all of the .desktops in applications and removed all that stuff by hand file-by-file.

Board footer

Forum Software