Re: Disabling lockscreen in GNOME for specific apps?

2023-12-04 Thread Tim via users
Tim:
>> Running a game as root?!  Not a good idea!
   

Frederic Muller:
> Well it didn't run either way... hence my question. As I said I thought 
> it would be the executable in a kind of database.

In general, you do everything that affects *you* as your own user. 
Applications, your screensaver settings, etc.

And if you do things as root, they affect the root user's settings,
rather than setting things for all users.  There are exceptions, of
course, but when you think of it that way, first, it helps to avoid
making mistakes.
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Frederic Muller

On 04/12/2023 13:05, Tim via users wrote:

On Sun, 2023-12-03 at 21:23 -0800, Samuel Sieb wrote:

It's because you're using sudo and the root user doesn't have a dbus
session to Gnome.

If you really have to use sudo (why?), try putting it after the inhibit
command.
gnome-session-inhibit sudo FPVFreerider.x86_64

Running a game as root?!  Not a good idea!
  


Well it didn't run either way... hence my question. As I said I thought 
it would be the executable in a kind of database.


Fred
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Frederic Muller

On 04/12/2023 12:23, Samuel Sieb wrote:

On 12/3/23 21:18, Frederic Muller wrote:

On 03/12/2023 19:45, olivares33561 via users wrote:
On Sunday, December 3rd, 2023 at 6:37 AM, olivares33561 via users 
 wrote:

If you can please try
$ gnome-sessikn-inhibit command-to-run-your-app


gnome-session-inhibit. The command was a typo sorry sent from phone

should do the job. If it doesn't work please let us know.


Thank you very much for the prompt reply. I tried this and got that:

gnome-session-inhibit FPVFreerider.x86_64
Failed to execute FPVFreerider.x86_64
fred@fedora:~/fpv/Freerider$ sudo gnome-session-inhibit 
FPVFreerider.x86_64

[sudo] password for fred:

** (gnome-session-inhibit:18376): WARNING **: 12:13:29.047: Failed to 
call Inhibit: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: 
The name org.gnome.SessionManager was not provided by any .service files


Could it be because I didn't make any .desktop file?


It's because you're using sudo and the root user doesn't have a dbus 
session to Gnome.


If you really have to use sudo (why?), try putting it after the 
inhibit command.

gnome-session-inhibit sudo FPVFreerider.x86_64

Oh i got it. I used sudo the second time as it didn't run the 
application. I thought it would be actually set forever. I now 
understand it's the way to launch the application...


Great! I'll run it and see if it works. And if I don't reply it means it 
did work.


Thank you very much.

Fred
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Tim via users
On Sun, 2023-12-03 at 21:23 -0800, Samuel Sieb wrote:
> It's because you're using sudo and the root user doesn't have a dbus 
> session to Gnome.
> 
> If you really have to use sudo (why?), try putting it after the inhibit 
> command.
> gnome-session-inhibit sudo FPVFreerider.x86_64

Running a game as root?!  Not a good idea!
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Samuel Sieb

On 12/3/23 21:18, Frederic Muller wrote:

On 03/12/2023 19:45, olivares33561 via users wrote:
On Sunday, December 3rd, 2023 at 6:37 AM, olivares33561 via users 
 wrote:

If you can please try
$ gnome-sessikn-inhibit command-to-run-your-app


gnome-session-inhibit. The command was a typo sorry sent from phone

should do the job. If it doesn't work please let us know.


Thank you very much for the prompt reply. I tried this and got that:

gnome-session-inhibit FPVFreerider.x86_64
Failed to execute FPVFreerider.x86_64
fred@fedora:~/fpv/Freerider$ sudo gnome-session-inhibit FPVFreerider.x86_64
[sudo] password for fred:

** (gnome-session-inhibit:18376): WARNING **: 12:13:29.047: Failed to 
call Inhibit: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The 
name org.gnome.SessionManager was not provided by any .service files


Could it be because I didn't make any .desktop file?


It's because you're using sudo and the root user doesn't have a dbus 
session to Gnome.


If you really have to use sudo (why?), try putting it after the inhibit 
command.

gnome-session-inhibit sudo FPVFreerider.x86_64
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Frederic Muller

On 03/12/2023 19:45, olivares33561 via users wrote:

On Sunday, December 3rd, 2023 at 6:37 AM, olivares33561 via users 
 wrote:


On Sunday, December 3rd, 2023 at 3:06 AM, Frederic Muller f...@cm17.com wrote:



Hi!

I run a simulator which is just an executable downloaded from the
developers website and unfortunately the screen locks after 5 minutes
... forcing to quickly press a key (hoping it won't do anything
unexpected with the simulator) and ... usually crash.

Is there a way to disable the lockscreen just for this app under GNOME?

Thank you.

Fred
--
___


If you can please try
$ gnome-sessikn-inhibit command-to-run-your-app


gnome-session-inhibit. The command was a typo sorry sent from phone

should do the job. If it doesn't work please let us know.


Thank you very much for the prompt reply. I tried this and got that:

gnome-session-inhibit FPVFreerider.x86_64
Failed to execute FPVFreerider.x86_64
fred@fedora:~/fpv/Freerider$ sudo gnome-session-inhibit FPVFreerider.x86_64
[sudo] password for fred:

** (gnome-session-inhibit:18376): WARNING **: 12:13:29.047: Failed to 
call Inhibit: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The 
name org.gnome.SessionManager was not provided by any .service files


Could it be because I didn't make any .desktop file?

Thank you.

Fred
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread olivares33561 via users




Sent from ProtonMail, encrypted email based in Switzerland.

Sent with Proton Mail secure email.

On Sunday, December 3rd, 2023 at 6:37 AM, olivares33561 via users 
 wrote:


> 
> 
> 
> 
> Sent from ProtonMail, encrypted email based in Switzerland.
> 
> Sent with Proton Mail secure email.
> 
> 
> On Sunday, December 3rd, 2023 at 3:06 AM, Frederic Muller f...@cm17.com wrote:
> 
> 
> 
> > Hi!
> > 
> > I run a simulator which is just an executable downloaded from the
> > developers website and unfortunately the screen locks after 5 minutes
> > ... forcing to quickly press a key (hoping it won't do anything
> > unexpected with the simulator) and ... usually crash.
> > 
> > Is there a way to disable the lockscreen just for this app under GNOME?
> > 
> > Thank you.
> > 
> > Fred
> > --
> > ___
> 
> 
> If you can please try
> $ gnome-sessikn-inhibit command-to-run-your-app
> 
gnome-session-inhibit. The command was a typo sorry sent from phone 
> should do the job. If it doesn't work please let us know.
> 
> Best Regards,
> 
> 
> Antonio
> --
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread olivares33561 via users




Sent from ProtonMail, encrypted email based in Switzerland.

Sent with Proton Mail secure email.

On Sunday, December 3rd, 2023 at 3:06 AM, Frederic Muller  wrote:


> Hi!
> 
> I run a simulator which is just an executable downloaded from the
> developers website and unfortunately the screen locks after 5 minutes
> ... forcing to quickly press a key (hoping it won't do anything
> unexpected with the simulator) and ... usually crash.
> 
> Is there a way to disable the lockscreen just for this app under GNOME?
> 
> Thank you.
> 
> Fred
> --
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue

If you can please try 
$ gnome-sessikn-inhibit command-to-run-your-app

should do the job.  If it doesn't work please let us know.

Best Regards,


Antonio 
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Disabling lockscreen in GNOME for specific apps?

2023-12-03 Thread Frederic Muller

Hi!

I run a simulator which is just an executable downloaded from the 
developers website and unfortunately the screen locks after 5 minutes 
... forcing to quickly press a key (hoping it won't do anything 
unexpected with the simulator) and ... usually crash.


Is there a way to disable the lockscreen just for this app under GNOME?

Thank you.

Fred
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue