DuDE-0.4.1

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#161 Post by 01micko »

Sigmund, a request.

In Lupu we have a program called "browser-default" which changes whatever browser to the default as long as it is installed of course! It is executed by a JWM main tray button in between the "menu" button and the "desktop" buttons.

It scans the .desktop files for browsers, filters out the junk and caches the info in /tmp and adjusts "/usr/local/bin/defaulbrowser" accordingly. It also launches the browser with a splash if you change it, or no splash if you don't change it. It also displays the browser in the "tree" bar. It is designed to cater for the user that want's many browsers and no technical knowledge and also to be very unobtrusive.

Image

As you can see I have made a DuDE compliant version, but it would be nice if it's presence is detected and DuDE makes the necessary adjustments to the Jwm main tray file.

At the moment I am storing the JWM adjustments in a temp folder and when the pinstall.sh runs it detects if DuDE is installed and takes the appropriate action.

Can you make DuDE compatible with "browser-default"? Will it clash at all with your "defaults chooser" in PCC? (I'm thinking it won't).

Of course no rush, current .pet attached.

Cheers

Mick
Attachments
browser-default-0.9.pet
(2.33 KiB) Downloaded 610 times
Puppy Linux Blog - contact me for access

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#162 Post by technosaurus »

Not to be a nay-sayer, but the defaultbrowserchooser should probably be an optional component of ptray or integrated into pcc. Most users will expect a tray button in that location to actually start the defaultbrowser.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#163 Post by 01micko »

technosaurus wrote:Not to be a nay-sayer, but the defaultbrowserchooser should probably be an optional component of ptray or integrated into pcc. Most users will expect a tray button in that location to actually start the defaultbrowser.
It does start the browser. The idea of it was a simple way in Puppy 5 to choose the default. It came about because if you uninstalled a browser there was no simple way to reset the default. Perhaps I should change the tooltip to "Change and launch browser" or something.

Possibly in DuDE your idea might be a good one.

Cheers
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#164 Post by zigbert »

defaultbrowserchooser

Hmm....some load thinking....
I don't use Puppy 5 on my daily desktop, so I have no experience with the actual use of defaultbrowserchooser. Thus, my opinions are lightweight.

As I see it, DuDE offers the same choice as defaultbrowserchooser with the defaultchooser. The user has to go through pcc, but I don't personally see the choice of browser more important than other default-apps. It sounds logical that if user installs a new browser, it will be the default. If not wanted, user have 2 obvious choices to override it. - Either reinstall the wanted browser, or change it in defaultchooser. In my eyes (from my current viewpoint) defaultbrowserchooser is pure overkill.

I feel a bit negative right now :)


Sigmund

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#165 Post by Jim1911 »

zigbert wrote:defaultbrowserchooser
In my eyes (from my current viewpoint) defaultbrowserchooser is pure overkill.
Sigmund
I agree, for us DuDE users, however it's a great feature for the user of Lucid that is primarily concerned with the default browser and not other applications. That's one of the fine features of Lucid, to be able to easily download browser(s) of choice and make your choice default.

Although, as Mick said, "it would be nice if it's presence is detected and DuDE makes the necessary adjustments to the Jwm main tray file." Of course, it may be better for the "defaultbrowserchooser" to detect that DuDE is installed. Just assure that they don't conflict in DuDE.

It's super that DuDE works with every pup that I've tried, which is no easy task. You've succeeded in providing us the best feature of Stardust without having to stay with a 4.3.1 derivative.

Thanks,
Jim

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#166 Post by 01micko »

Hi Sigmund

I guess if we all agreed on everything, things would be pretty boring! :lol:

As Jim said
Of course, it may be better for the "defaultbrowserchooser" to detect that DuDE is installed. Just assure that they don't conflict in DuDE.
....and it does do that, if one decides they want to use it. :)

That's good enough for me.

Cheers.
Puppy Linux Blog - contact me for access

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#167 Post by zigbert »

01micko wrote:As Jim said
Of course, it may be better for the "defaultbrowserchooser" to detect that DuDE is installed. Just assure that they don't conflict in DuDE.
....and it does do that, if one decides they want to use it. :)
I guess this means defaultbrowserchooser has its own .desktop file, and are reachable from Ptray as a program button?
I guess if we all agreed on everything, things would be pretty boring!
The best about disagreement is that it forces us to think through our opinions. :)


Sigmund

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#168 Post by 01micko »

zigbert wrote:I guess this means defaultbrowserchooser has its own .desktop file, and are reachable from Ptray as a program button?

Sigmund
No. There is no need of a .desktop file for it. To choose to use it a user must install the pet. Which is just fine :) . That's why I made it DuDE compliant. If a user installed it previously in DuDE it broke the menus. Now it seems to play nice.

Cheers
Puppy Linux Blog - contact me for access

Nooblet0218
Posts: 105
Joined: Fri 21 May 2010, 17:50

#169 Post by Nooblet0218 »

this is gorgeous, so customizable, i love it. its helped me tweaked many little desktop things that bug me.

only thing though im having trouble tweaking, how can i change the menu button? i liked the old default lupu puppy button but i've had trouble figuring out how to set it back without going hunting for the picture currently in use and just replacing it with a symlink

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#170 Post by zigbert »

The menu-button is a part of the icon-themes. It is located in /usr/local/lib/X11/pixmaps/start-button.png. When you change icon-theme it will be overwritten by the menu-button in the chosen icon-theme. See /usr/local/lib/X11/themes/


Sigmund

Nooblet0218
Posts: 105
Joined: Fri 21 May 2010, 17:50

#171 Post by Nooblet0218 »

beautiful, thank you very much for this very handy program

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

DuDe-4 loosing menu on start button.

#172 Post by Béèm »

I transformed the DuDe-0.4.pet in a sfs.
I run lucid 212.
Whenever I edit the tray with the control center, clicking on the menu button does nothing anymore.
I have to edit ~/.stardust/trays/Main_tray.rc and edit root:0 to read root:3 again.

Also I lost the lucid partview applet and the quick pet applet in the tray.
In the mean time I found how to restore the show desktop icon (and functionality)

But also the freememapplet doesn't return in the tray on a JWM restart.

Is there a problem in DuDe-0.4 or is there one in lucid?

EDIT
The situation is getting worse.
So I don't load the DuDe-.04 sfs anymore.
But now I lost freememapplet, blinky, the menu icon and quite some entries of the menu, specially in the Desktop, setup and system part.

I will have to dump the save file and start a new one to get everything back as it was.

A pity as I hoped to have with DuDe a control center for more user-friendly configuration and setting in lucid.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#173 Post by Jim1911 »

Hi zigbert,

For some reason resize save file doesn't show up in the utility menu using DuDE-0.4 with luci-213. resizepfile.sh still works, just doesn't show up in any menu, so I added it to favorites.

Cheers,
Jim

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#174 Post by zigbert »

Béèm
DuDE is not a cutting-edge project, so I will test it on Puppy 5.1 when it arrives.

Remember that DuDE does not cooperate with the existing JWM-settings. - It completely takes control.

If you find solutions of any trouble, please let us know.


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#175 Post by zigbert »

Jim1911 wrote:For some reason resize save file doesn't show up in the utility menu using DuDE-0.4 with luci-213. resizepfile.sh still works, just doesn't show up in any menu, so I added it to favorites.
You can add resizepfile to your menu with Pmenu. See Program-menu tab.

Resize is also available from pcc (Install tab)


Sigmund

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#176 Post by jpeps »

I was curious about the amount of resources used for gtkdialog corners, far more than conky widgets. Seems like a lot?

11102 1090 root S 18876 2% 0 0% /tmp/yaf-splash --class=gtkdialog-splash --program=GTKDIALOG_SPLASH --center
12206 12200 root S 18240 2% 0 0% gtkdialog3 -p Corner_LeftBottom --name=cornerleftbottom
12207 12204 root S 18240 2% 0 0% gtkdialog3 -p Corner_RightTop --name=cornerrighttop
12208 12202 root S 18240 2% 0 0% gtkdialog3 -p Corner_RightBottom --name=cornerrightbottom
12209 12205 root S 18240 2% 0 0% gtkdialog3 -p Corner_LeftTop --name=cornerlefttop

EDIT:
My quick and dirty solution (I only use lefttop for pnote) Saves 53.44 mgs:

Code: Select all

/usr/share/stardust/corners # ls
leftbottomBAK  lefttop  rightbottomBAK  righttopBAK

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#177 Post by zigbert »

jpeps
Nice.....I will use your technique to only activate the used corners.
Added to todo-list


Sigmund

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#178 Post by zigbert »

DuDE 0.4.1
See main post

Changelog
- New gui for changing gtk-theme - pgtktheme
- Don't run pnote-corners that are not in use. (thanks to jpeps)
- MicksClock allows different fonts. (thanks to 01micko)
- Run Ptheme outside DuDE (still requires updated icon_switcher/jwm_switcher/pgtktheme).
- Smoothen the Stardust device-icons.
- Updatec globicons for Puppy 5.1
- Bugfix: MicksClock didn't find yaf-splash in later Puppies. (thanks to 01micko)
- Bugfix: Link to Quickpet in pcc. (thanks to jim1911)

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#179 Post by Jim1911 »

zigbert,

Thanks, your update looks solid in Lupid-5.1.1. You continue to add nice little features.

Cheers,
Jim

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#180 Post by zigbert »

Jim
Yes, it works rather stable. Some minor news, but most polishing here and there. If you have any suggestions for improvements, please share......


Sigmund

Post Reply