[SOLVED]Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post here if you feel others can duplicate your so discovered "bug"

Moderator: Forum moderators

Post Reply
Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

[SOLVED]Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

Like is subject.
Before bug happend i have Geany open when i use "poweroff" from terminal.
When i start OS again Geany open my all tray apps like text file not in tray.

I look list from. Setup > Startup Control - control startup apps.

Then go to /usr/bin/write app name from list and all trey program like firewall or retrovol run again and i see all in tray normal but after restart sesion was saved coz i see message when restart system but all back like before.
How i can save puppy session or tell Geany not open that apps as text file... This hapend some dey i even not need open that file.

Now after start my puppy first i see how geany open 1 file when i close windows using X in corner next file open and fiew more after all my Geany looks like this:

Please look screen when i execute script in Geany he direct me to tmp folder not /usr/bin/... :(

Anyone know what bug is this? Fiew days ago all work normal and i never before have any problem like this with bionic x64

Ach and i change NoDisplay=true to false coz i think that is problem but no, this not help.

Attachments
tray apps bug open in geany3.jpg
tray apps bug open in geany3.jpg (119.64 KiB) Viewed 923 times
tray apps bug open in geany2.jpg
tray apps bug open in geany2.jpg (143.8 KiB) Viewed 923 times
tray apps bug open in geany.jpg
tray apps bug open in geany.jpg (64.12 KiB) Viewed 923 times
Last edited by Zuzia on Sat Nov 06, 2021 7:20 am, edited 1 time in total.
Feek
Posts: 402
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 55 times
Been thanked: 90 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Feek »

Whenever you want to shutdown with terminal and X is running with rox-filer and jwm, you should use "wmpoweroff" instead of "poweroff" (the "poweroff" command can be used when you are in command line without X running).

williams2
Posts: 1069
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by williams2 »

.desktop files that are in /root/.config/autostart
are run automatically when Puppy boots by /bin/xdg_autostart.sh

each .desktop file is started by /usr/bin/xdg-open or by /usr/local/bin/xdg-open

older Pups used to use /usr/local/bin/defaulthandler instead of xdg-open

xdg-open uses rox to run the .desktop files.

What happens if you type rox in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

What happens if you type xdg-open /root in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

What happens if you type defaultfilemanager /root in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

Did you try to change the default file manager?
I think that the default file manager should be roxfiler.

User avatar
bigpup
Moderator
Posts: 7517
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1022 times
Been thanked: 1682 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by bigpup »

Before bug happend i have Geany open when i use "poweroff" from terminal.
When i start OS again Geany open my all tray apps like text file not in tray.

Use the normal way to shutdown using the menu
Do not have Geany open when you shutdown.

Something to check.
Run Geany>Edit>Preferences>General Tab>Startup
UN-check load files from last session

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

Feek wrote: Fri Nov 05, 2021 8:23 am

Whenever you want to shutdown with terminal and X is running with rox-filer and jwm, you should use "wmpoweroff" instead of "poweroff" (the "poweroff" command can be used when you are in command line without X running).

Hi ok i remember that but, meny times i use that to off my pc and never problem before :) But i create keyboard shotrcut to wmpoweroff then.

Last edited by Zuzia on Fri Nov 05, 2021 3:11 pm, edited 1 time in total.
Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

williams2 wrote: Fri Nov 05, 2021 8:49 am

.desktop files that are in /root/.config/autostart
are run automatically when Puppy boots by /bin/xdg_autostart.sh

each .desktop file is started by /usr/bin/xdg-open or by /usr/local/bin/xdg-open

older Pups used to use /usr/local/bin/defaulthandler instead of xdg-open

xdg-open uses rox to run the .desktop files.

What happens if you type rox in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

What happens if you type xdg-open /root in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

What happens if you type defaultfilemanager /root in a terminal?
A rox-filer window should pop up,
a geany window should not pop up.

Did you try to change the default file manager?
I think that the default file manager should be roxfiler.

All 3 comand looks same open roxfiler window. My defoult wm is rox and i love this i never try change anything. All work properly now.

desktop files that are in /root/.config/autostart
are run automatically when Puppy boots by /bin/xdg_autostart.sh

each .desktop file is started by /usr/bin/xdg-open or by /usr/local/bin/xdg-open

older Pups used to use /usr/local/bin/defaulthandler instead of xdg-open

xdg-open uses rox to run the .desktop files.

Then is any way to generate new defaults xdg_autostart.sh file script or i must do some manual changes to prevent open apps like text in Geany.

I check my /root/.config/autostart folder and this is super wierd for me just look
I open all windows and do screen for You all.
In autostart i have folder disable and enable and here two symbolic link direct me to the same folder. This is normal? Meybe i just delete all from autostart and open missing apps form tray manualy then try pup save?

Look folder path on tittle bar and you see what i mean.

Permision is only

rw (read, write)

mabe i must add executable to repair this rwx becouse not this not start as app...
Can anyone check your autostart folder and tell me: My is normal or not? coz this is rly wierd structure. I mean path to file can be unlimited coz symlinc back me to autostart folder.

Attachments
autostart folder and symbolic link wierd.jpg
autostart folder and symbolic link wierd.jpg (144.2 KiB) Viewed 887 times
Last edited by Zuzia on Fri Nov 05, 2021 3:07 pm, edited 4 times in total.
Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

Something to check.
Run Geany>Edit>Preferences>General Tab>Startup
UN-check load files from last session

Hi i do this before but also i check now even if i OFF autoload last session file this not help. After reboot system all work same as before even if that option in geany is off or on not matter.

Attachments
geanypref.png
geanypref.png (43.94 KiB) Viewed 891 times
williams2
Posts: 1069
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 306 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by williams2 »

i never before have any problem like this with bionic x64

I am running BionicPup64. is your problem with FossaPup64?

mabe i must add executable to repair this rwx becouse not this not start as app...
Can anyone check your autostart folder and tell me:

The .desktop files in /root/.config/autostart/ in BionicPup64 are all not executable
(they are all unchanged from the original pup.sfs.)

you should use "wmpoweroff" instead of "poweroff"

Actually, in BionicPup64 and AFAIK in FossaPup64,
poweroff, wmpoweroff, reboot, wmreboot, and wmexit are all scripts,
and if they work properly, any one of them should shut down properly whether X is running or not. If they work properly.

All 3 comand looks same open roxfiler window. My default wm is rox and i love this i never try change anything

if when you boot or reboot, Geany pop up with the .desktop files that are in /root/.config/autostart/ as text in tabs, then it must be /bin/xdg_autostart.sh that is responsible.
It is as if the run action that is set in rox for .desktop files is to open the .desktop file with geany.
But you can not Set Run Action for desktop files.

In BionicPup64 and AFAIK in FossaPup64, /usr/local/bin/roxfiler has a bug in it, easy to fix, that prevents it from working properly with URIs. But that should not cause your problem. It would be a problem with, for example, Calibre.

You could disable the Geany config files by closing all geany windows then renaming the geany config dir to see if that would help. Like this:

Code: Select all

cd /root/.config/
mv geany geanyBAK
wmreboot

If that helps then you would know there is a problem with geany's configuration.
I don't think that is the problem.

Does Geany pop up automatically with the text in the .desktop files, in Geany, every time you boot?

Rox should execute a .desktop file when you click it.
Rox should not show the text in a .desktop file in Geany, when you click it.

this is rly wierd structure. I mean path to file can be unlimited coz symlinc back me to autostart folder.

It is not the best practice. But Puppy has a few places where there are infinite loops, for example, in /lib (necessary to work with Ubuntu's default paths.)
Really, all of the library so files in the dir should each one be symlinked, to prevent infinite loops, but the Linux file system seems to be able to handle infinite loops without difficulty.

Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

Re: Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

All 3 comand looks same open roxfiler window. My default wm is rox and i love this i never try change anything

if when you boot or reboot

Only when system start after reboot or power off and then start again.

And YES rox open all *.desktop file as programs even if not executable in permisions.

After puppy start i see how geany open example 1 tab with script retrovol.desktop then when i close geany he open next tab and again and again when all autostart program will be open in tabs.

I can manualy close geany then i can open all programs from autostart or from /usr/bin/ and all start and work normal and i see all icon on the task bar likie clipit or firaeallstatus etc.

But after reboot all back like before :(

This is wierd coz puppy must save all sesion after poweroff or reboot. My pupsave is setup to 0 then i dont know why geany automaticly open that autostatr programs like text file then he not open in taskbar :(

EDIT i uninstall Geany form "remove built in packages" in system menu then my autostart file open 1 by 1 in Abiword. I dig some more and i find same problem in fossa.

here > viewtopic.php?f=146&t=2971

This is random bug somtime happend after install some apps...

can anyone tell me how i can do this:

You need to restore the original /usr/bin/xdg-open. You can find it in /initrd/pup_ro2.

Becouse answer looks like problem soled.

Restoring the "/usr/bin/xdg-open" with /initrd/pup_ro2/usr/local/bin/xdg-open FIXED the issue.
Right on target, dimkr! :thumbup2:[/b]

Ok problem [SOLVED!] : )

I just rename file form /usr/bin/xdg-open to ~xdg-open then copy orginal file from /initrd/pup_ro2/usr/local/bin/xdg-open to /usr/bin/ directory after reboot system all work normal again and i can delete broken backup file with ~in neme ~xdg-open deleted :)

Now i must know how i can install Geany again coz like i tell before i remove it from "remove built in packages" in system menu. Anyone can tell me how i can add this 2 packages again coz i delete only geany and geany-plugins and in ppm still egsist as instaled, coz i not find geany on uninstall list.

Attachments
Broken / problematic file ~xdg-open
Broken / problematic file ~xdg-open
solved.jpg (32.03 KiB) Viewed 857 times
User avatar
bigpup
Moderator
Posts: 7517
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1022 times
Been thanked: 1682 times

Re: [SOLVED]Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by bigpup »

Remove builtin programs how to restore what was removed
viewtopic.php?p=12263#p12263

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Zuzia
Posts: 108
Joined: Wed Oct 21, 2020 2:32 pm
Has thanked: 13 times
Been thanked: 6 times

Re: [SOLVED]Wierd bug auto start apps open in Geany not in tray when puppy linux start.

Post by Zuzia »

bigpup wrote: Sat Nov 06, 2021 7:23 am

Remove builtin programs how to restore what was removed
viewtopic.php?p=12263#p12263

Thanks Friend for topic :) i rly can broke meny things to find and resole problem just testing possibilities becouse format is only for weak people :D My all systems work somtimes 15 years and more. In Windows Total Commander is my best friend :D In Puppy all community :) Thank You from the bottom of my souls! :D (Shadow Fiend Dota2)... :D
After long list delete *.wh file Geany work again :)

Attachments
solved geany.jpg
solved geany.jpg (140.01 KiB) Viewed 619 times
Post Reply

Return to “Bug Reports”