Something New

Non release banter
User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Something New

Post#31 by Ed_P » 21 Feb 2024, 04:33

Jack wrote:
21 Feb 2024, 03:48
I will just run in Mate Terminal and do this at lease it works.

Code: Select all

guest@porteus:~$ save-session
You must be root to run this!
guest@porteus:~$
:good: Good to see Jack. :happy62: :beer:
Ed

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Something New

Post#32 by Jack » 21 Feb 2024, 04:56

Ed_P wrote:
21 Feb 2024, 04:33
Jack wrote:
21 Feb 2024, 03:48
I will just run in Mate Terminal and do this at lease it works.

Code: Select all

guest@porteus:~$ save-session
You must be root to run this!
guest@porteus:~$
:good: Good to see Jack. :happy62: :beer:
Thanks it works now if my changes miss up and I have to delete it for some reason I won't have to start all over with setup my setting.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Something New

Post#33 by Ed_P » 21 Feb 2024, 06:39

Ok Jack, now lets try this.

With ncmp's save-session python script saved in your /home/guest/ folder as save-session create this file Save-Session.desktop:

Code: Select all

[Desktop Entry]
Name=Save-Session
Comment=Save changes to a module or file.
Exec=/home/guest/save-session
Icon=document-save-symbolic
Terminal=false
Type=Application
Name[en_US]=Save-Session
StartupNotify=false
Categories=GTK;System;Utility;
Make it classified as Executable then as root copy it to the /usr/share/applications/ folder.

Added in 26 minutes 21 seconds:
Now a problem. :wall: Save-Session shows up in the Porteus menu's Administration menu :good: but when selected it opens a terminal window briefly then disappears. Obviously I screwed up a setting, which I assume is tied to the root requirement. Anyone got a solution/recommendation? :Search:
Last edited by Ed_P on 22 Feb 2024, 20:46, edited 1 time in total.
Ed

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Something New

Post#34 by Jack » 21 Feb 2024, 07:10

Not sure how to do this Make it classified as Executable.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Something New

Post#35 by Jack » 21 Feb 2024, 08:31

I have save-session working in the menu now but the Terminal is bigger then Porteus Session Saver but it dose work.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Something New

Post#36 by Jack » 21 Feb 2024, 20:51

Ed_P wrote:
21 Feb 2024, 07:05
Ok Jack, now lets try this.

With ncmp's save-session python script saved in your /home/guest/ folder as save-session create this file Save-Session.desktop:

Code: Select all

[Desktop Entry]
Name=Save-Session
Comment=Save changes to a module or file.
Exec=/home/guest/save-session
Icon=/usr/share/pixmaps/porteus/porteus-logo.svg
Terminal=true
Type=Application
Name[en_US]=Save-Session
StartupNotify=false
Categories=GTK;System;Utility;
Make it classified as Executable then as root copy it to the /usr/share/applications/ folder.

Added in 26 minutes 21 seconds:
Now a problem. :wall: Save-Session shows up in the Porteus menu's Administration menu :good: but when selected it opens a terminal window briefly then disappears. Obviously I screwed up a setting, which I assume is tied to the root requirement. Anyone got a solution/recommendation? :Search:
I fixed the code and without a Terminal.

Code: Select all

[Desktop Entry]
Name=Save-Session
Comment=Save changes to a module or file.
Exec=save-session
Icon=porteus-logo.svg
Terminal=false
Type=Application
Name[en_US]=Save-Session
StartupNotify=false
Categories=System;Utility;
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Something New

Post#37 by Ed_P » 22 Feb 2024, 00:15

Jack wrote:
21 Feb 2024, 20:51
I fixed the code and without a Terminal.
Excellent. :Yahoo!:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Root Terminal

Post#38 by Ed_P » 22 Feb 2024, 21:14

Jack wrote:
22 Feb 2024, 20:52
It was in the Menu and I wanted it to work.
Clicking on the Save-Session option? Mine doesn't work from the menu either, even with your change made to the script I posted. So, adding all those modules you posted solved your problem?
Jack wrote:
22 Feb 2024, 06:08
gksu-2.0.2-x86_64-1salix15.0.txz
lib64glib1.2-1.2.10-20pclos2015.x86_64.rpm
lib64gtk+1.2-1.2.10-51pclos2019.x86_64.rpm
GConf-3.2.6-x86_64-7.txz
gtk+2-2.24.33-x86_64-2.txz
libgnome-keyring-3.12.0-x86_64-4.txz
Ed

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Root Terminal

Post#39 by Jack » 22 Feb 2024, 22:57

Wrong area ED All needs move.
Ed_P wrote:
22 Feb 2024, 21:14
Clicking on the Save-Session option? Mine doesn't work from the menu either, even with your change made to the script I posted. So, adding all those modules you posted solved your problem?
In Control Center run Main Menu go to System Tools go to Save Session then run Properties now when it open look and see what shows should look like this.

Type: Application
Name: Save Session
Command: /usr/share/applications/Save-Session.desktop Browses to find it.
Comment: Save changes to a module or file.

This for Mate
Last edited by Jack on 23 Feb 2024, 00:12, edited 3 times in total.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Root Terminal

Post#40 by beny » 22 Feb 2024, 23:40

hi jack put the script into the /usr/local/bin and mark executable work on my system the desktop launcher you can place everywhere
[Desktop Entry]
Name=Save-Session
Comment=Save changes to a module or file.
Exec=python /usr/local/bin/changes-saved.py
Icon=document-save-symbolic
Terminal=false
Type=Application
Name[en_US]=Save-Session
StartupNotify=false
Categories=Application;System;Utility;

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Root Terminal

Post#41 by Jack » 23 Feb 2024, 00:04

beny wrote:
22 Feb 2024, 23:40
hi jack put the script into the /usr/local/bin and mark executable work on my system the desktop launcher you can place everywhere
[Desktop Entry]
Name=Save-Session
Comment=Save changes to a module or file.
Exec=python /usr/local/bin/changes-saved.py
Icon=document-save-symbolic
Terminal=false
Type=Application
Name[en_US]=Save-Session
StartupNotify=false
Categories=Application;System;Utility;
Your in the wrong message area this is Root Terminal and your should be in Something New area. Beside all had to do fix Save-Session.desktop.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Post Reply